mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Adding explicit error message in verifyNetworkState function in case network is not in desired state
This commit is contained in:
parent
5f893daa2c
commit
6115a90c70
@ -1167,6 +1167,9 @@ def verifyNetworkState(apiclient, networkid, state, listall=True):
|
||||
break
|
||||
retriesCount -= 1
|
||||
time.sleep(60)
|
||||
if not isNetworkInDesiredState:
|
||||
exceptionMessage = "Network state should be %s, it is %s" %\
|
||||
(state, networks[0].state)
|
||||
except Exception as e:
|
||||
exceptionOccured = True
|
||||
exceptionMessage = e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user