diff --git a/tools/marvin/marvin/lib/common.py b/tools/marvin/marvin/lib/common.py index 46291a9d040..3706456b359 100644 --- a/tools/marvin/marvin/lib/common.py +++ b/tools/marvin/marvin/lib/common.py @@ -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