mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
pep8 style code corrections
This commit is contained in:
parent
fdbb6739c1
commit
828a271789
18 changed files with 69 additions and 64 deletions
|
@ -15,6 +15,7 @@ from django.contrib import messages
|
|||
def networks(request, compute_id):
|
||||
"""
|
||||
:param request:
|
||||
:param compute_id:
|
||||
:return:
|
||||
"""
|
||||
|
||||
|
@ -64,6 +65,8 @@ def networks(request, compute_id):
|
|||
def network(request, compute_id, pool):
|
||||
"""
|
||||
:param request:
|
||||
:param compute_id:
|
||||
:param pool:
|
||||
:return:
|
||||
"""
|
||||
|
||||
|
@ -154,9 +157,9 @@ def network(request, compute_id, pool):
|
|||
if edit_xml:
|
||||
try:
|
||||
new_conn = wvmNetworks(compute.hostname,
|
||||
compute.login,
|
||||
compute.password,
|
||||
compute.type)
|
||||
compute.login,
|
||||
compute.password,
|
||||
compute.type)
|
||||
conn.define_network(edit_xml)
|
||||
if conn.is_active():
|
||||
messages.success(request, _("Network XML is changed. Stop and start network to activate new config."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue