diff options
author | 2020-03-23 12:01:38 +0100 | |
---|---|---|
committer | 2020-03-23 12:01:38 +0100 | |
commit | 98c69958a5f463ebaa5b75ef3188d599ead93692 (patch) | |
tree | 47bc930fdd5abdc59f050c085c9ede4f393b69ea /catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py | |
parent | 5944b441468500fffa7111b5dea9181461ae1303 (diff) |
Fixed import in sdc-BE-init python scripts
Issue-ID: SDC-2784
Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
Change-Id: I72eb129c5c4cb63fdf0ab13a6128d555b49b6d0c
Diffstat (limited to 'catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py index 4bf1de37f1..7ba925038f 100644 --- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py +++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeHeatAndNormativeTypes.py @@ -1,5 +1,3 @@ -import yaml - from importNormativeTypes import * @@ -45,7 +43,7 @@ def upgradeTypesPerConfigFile(scheme, be_host, be_port, admin_user, base_dir, up if result[1] is None or result[1] not in response_codes: print "Failed creating normative type " + normativeType + ". " + str(result[1]) return results - except yaml.YAMLError as exc: + except Exception as exc: print(exc) |