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
|
break
|
||||||
retriesCount -= 1
|
retriesCount -= 1
|
||||||
time.sleep(60)
|
time.sleep(60)
|
||||||
|
if not isNetworkInDesiredState:
|
||||||
|
exceptionMessage = "Network state should be %s, it is %s" %\
|
||||||
|
(state, networks[0].state)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exceptionOccured = True
|
exceptionOccured = True
|
||||||
exceptionMessage = e
|
exceptionMessage = e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user