aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-07-19 18:25:12 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-07-25 15:03:36 +0000
commit924b33856a717a70570e9108596716a781e39ec0 (patch)
tree27951fd24b1d5e6217580254c49d6f02efc3185a /catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py
parent6c3541e2f1a64a7140b7bb54ff5aa546facbb14f (diff)
Align normatives and scripts
Change-Id: I5e15e3c5adaf13a5b785613d20411f5d0e42e264 Issue-ID: SDC-1544 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py')
-rw-r--r--catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py
index 25d9b4d1fc..d3e5a4b2da 100644
--- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py
+++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeSolTypes.py
@@ -55,7 +55,7 @@ def main(argv):
opts, args = getopt.getopt(argv, "i:p:u:v:h:s:", ["ip=", "port=", "user=", "updateversion=","scheme="])
except getopt.GetoptError:
usage()
- errorAndExit(2, 'Invalid input')
+ error_and_exit(2, 'Invalid input')
for opt, arg in opts:
# print opt, arg
@@ -94,9 +94,9 @@ def main(argv):
failedNormatives = filter(lambda x: x[1] == None or x[1] not in responseCodes, results)
if (len(failedNormatives) > 0):
- errorAndExit(1, None)
+ error_and_exit(1, None)
else:
- errorAndExit(0, None)
+ error_and_exit(0, None)
if __name__ == "__main__":