diff options
author | xuegao <xue.gao@intl.att.com> | 2020-12-18 10:37:23 +0100 |
---|---|---|
committer | Xue Gao <xue.gao@intl.att.com> | 2021-01-19 15:32:33 +0000 |
commit | a856d54c8df7bf3a0212b4c7fd8f18a6a6b91449 (patch) | |
tree | f4a5b2a4ef5cc2865282b108bd2103778d7fb9e3 /catalog-be/src/main/resources/scripts/sdcBePy/common/normative | |
parent | 27fa75194efcf77c93b645ef7b412668ac3f5d38 (diff) |
Add basic auth header
Add basic auth header for sdc-backend-init python scripts.
Issue-ID: OJSI-273
Signed-off-by: xuegao <xue.gao@intl.att.com>
Change-Id: I3559d5792509db0f65b202a731545083c7c91c96
Signed-off-by: xuegao <xue.gao@intl.att.com>
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/common/normative')
-rw-r--r-- | catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py | 4 | ||||
-rw-r--r-- | catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py index 5cdca0a095..5ef3173907 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaElements.py @@ -9,11 +9,11 @@ from sdcBePy.common.errors import ResourceCreationError def process_and_create_normative_element(normative_element, - scheme=None, be_host=None, be_port=None, admin_user=None, sdc_be_proxy=None, + scheme=None, be_host=None, be_port=None, header=None, admin_user=None, sdc_be_proxy=None, debug=False, exit_on_success=False): if sdc_be_proxy is None: - sdc_be_proxy = SdcBeProxy(be_host, be_port, scheme, admin_user, debug=debug) + sdc_be_proxy = SdcBeProxy(be_host, be_port, header, scheme, admin_user, debug=debug) file_dir, url_suffix, element_name, element_from_name, with_metadata = normative_element.get_parameters() _create_normative_element(sdc_be_proxy, diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py index 5d64f448d3..97fb2d1d7e 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/common/normative/toscaTypes.py @@ -9,13 +9,13 @@ from sdcBePy.common.sdcBeProxy import SdcBeProxy def process_and_create_normative_types(normative_type, - scheme=None, be_host=None, be_port=None, admin_user=None, + scheme=None, be_host=None, be_port=None, header=None, admin_user=None, sdc_be_proxy=None, update_version=False, debug=False, exit_on_success=False): if sdc_be_proxy is None: - sdc_be_proxy = SdcBeProxy(be_host, be_port, scheme, admin_user, debug=debug) + sdc_be_proxy = SdcBeProxy(be_host, be_port, header, scheme, admin_user, debug=debug) file_dir, normative_type_list = normative_type.get_parameters() |