diff options
author | andre.schmid <andre.schmid@est.tech> | 2020-01-31 14:36:58 +0000 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2020-02-05 07:43:43 +0000 |
commit | 97a799ecfdec2d281b5868eb847b35d0eec63673 (patch) | |
tree | 782c4fa8b4a7a4e486fe9457813b08b40c9ea577 /catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py | |
parent | 73fa45ca5aa62dfa4aa074125c384ffbaad60387 (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/importNormativeTypes.py')
-rw-r--r-- | catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py index 6eea374716..0fcaf58ee6 100644 --- a/catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py +++ b/catalog-be/src/main/resources/scripts/import/tosca/importNormativeTypes.py @@ -27,6 +27,8 @@ def createNormativeType(scheme, beHost, bePort, adminUser, fileDir, ELEMENT_NAME buffer = StringIO() c = pycurl.Curl() + if is_debug(): + c.setopt(pycurl.VERBOSE, 1) url = scheme + '://' + beHost + ':' + bePort + '/sdc2/rest/v1/catalog/upload/multipart' if updateversion != None: @@ -70,6 +72,7 @@ def createNormativeType(scheme, beHost, bePort, adminUser, fileDir, ELEMENT_NAME #c.setopt(c.WRITEFUNCTION, lambda x: None) c.setopt(c.WRITEFUNCTION, buffer.write) + #print("before perform") res = c.perform() |