summaryrefslogtreecommitdiffstats
path: root/utils/lab-reconfiguration/reconfigUcsNet.py
diff options
context:
space:
mode:
authorPeter Bandzi <pbandzi@cisco.com>2015-08-14 17:40:05 +0200
committerPeter Bandzi <pbandzi@cisco.com>2015-08-14 17:41:58 +0200
commit41848db4af5591d5581e851c14af0cb8c9a2d391 (patch)
treee9ffd5e038882df106b3d3d3fa1512dbcc91494b /utils/lab-reconfiguration/reconfigUcsNet.py
parent08023e9a135a12dc0a948ed81203cac4fc77f9f1 (diff)
Add exit code 1 when script fails
JIRA: OCTO-109 Change-Id: Id0cc879514ae55f448658968b49a6219f47f03e1 Signed-off-by: Peter Bandzi <pbandzi@cisco.com>
Diffstat (limited to 'utils/lab-reconfiguration/reconfigUcsNet.py')
-rwxr-xr-xutils/lab-reconfiguration/reconfigUcsNet.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/lab-reconfiguration/reconfigUcsNet.py b/utils/lab-reconfiguration/reconfigUcsNet.py
index 01c4b8340..90c292bcd 100755
--- a/utils/lab-reconfiguration/reconfigUcsNet.py
+++ b/utils/lab-reconfiguration/reconfigUcsNet.py
@@ -31,6 +31,7 @@ import optparse
import platform
import yaml
import time
+import sys
from UcsSdk import *
from collections import defaultdict
@@ -237,3 +238,4 @@ if __name__ == "__main__":
print '-'*60
traceback.print_exc(file=sys.stdout)
print '-'*60
+ sys.exit(1)