The python network script isn' based on exception but return values
* postservice/31-one-netmng (OneClient.create_network): make sure to return True since the returned value is checkd in “OneNetwork.create()”. Ref: #24531
This commit is contained in:
parent
cac835e1ee
commit
6f190b5dcd
@ -130,9 +130,9 @@ class OneClient():
|
||||
if not res:
|
||||
print("Error attaching {0} vnet to {1} cluster".format(vnet_name, cluster))
|
||||
return False
|
||||
|
||||
os.remove(templatefile)
|
||||
|
||||
else:
|
||||
os.remove(templatefile)
|
||||
return True
|
||||
else:
|
||||
logger.error(u"Creation of virtual network with template {0} failed".format(templatefile))
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user