From 41848db4af5591d5581e851c14af0cb8c9a2d391 Mon Sep 17 00:00:00 2001 From: Peter Bandzi Date: Fri, 14 Aug 2015 17:40:05 +0200 Subject: Add exit code 1 when script fails JIRA: OCTO-109 Change-Id: Id0cc879514ae55f448658968b49a6219f47f03e1 Signed-off-by: Peter Bandzi --- utils/lab-reconfiguration/reconfigUcsNet.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/lab-reconfiguration') 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) -- cgit 1.2.3-korg