From 924b33856a717a70570e9108596716a781e39ec0 Mon Sep 17 00:00:00 2001 From: Tal Gitelman Date: Thu, 19 Jul 2018 18:25:12 +0300 Subject: Align normatives and scripts Change-Id: I5e15e3c5adaf13a5b785613d20411f5d0e42e264 Issue-ID: SDC-1544 Signed-off-by: Tal Gitelman --- .../src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py') diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py index 5cb0ca3b0c..4f254f26fe 100644 --- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py +++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatTypes1707.py @@ -69,7 +69,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 @@ -108,9 +108,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__": -- cgit 1.2.3-korg