summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/resources/scripts/import/tosca/importCommon.py
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-01-31 14:36:58 +0000
committerYuli Shlosberg <ys9693@att.com>2020-02-05 07:43:43 +0000
commit97a799ecfdec2d281b5868eb847b35d0eec63673 (patch)
tree782c4fa8b4a7a4e486fe9457813b08b40c9ea577 /catalog-be/src/main/resources/scripts/import/tosca/importCommon.py
parent73fa45ca5aa62dfa4aa074125c384ffbaad60387 (diff)
Fix sdc-backend-init heat type upgrade
Removes all heat and normative items from typesToUpgrade.json. Add verbose to pycurl if is in debug mode, to print request information. Adjust to upgradeONAPNormative.py to the correct python syntax and removing unused imports. Change-Id: Id4ee601dd70b337c5eeb84965843305300ef7fe3 Issue-ID: SDC-2752, SDC-2753 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-be/src/main/resources/scripts/import/tosca/importCommon.py')
-rw-r--r--catalog-be/src/main/resources/scripts/import/tosca/importCommon.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/importCommon.py b/catalog-be/src/main/resources/scripts/import/tosca/importCommon.py
index ed92ca8b3d..74bdf806f0 100644
--- a/catalog-be/src/main/resources/scripts/import/tosca/importCommon.py
+++ b/catalog-be/src/main/resources/scripts/import/tosca/importCommon.py
@@ -27,6 +27,10 @@ def debug(desc, *args):
print desc, join_strings(args)
+def is_debug():
+ return debugFlag
+
+
def log(desc, arg=None):
print desc, arg