From: fujinhua Date: Wed, 30 Aug 2017 09:27:22 +0000 (+0800) Subject: Extend rest call param to support sdc X-Git-Tag: v1.0.0~123 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=7310fc94cd9b5577c031cf278092209ec7862c7c;p=vfc%2Fnfvo%2Flcm.git Extend rest call param to support sdc Change-Id: I6b0f26e2d3c99e5fd51ed665ea74a22ebbbbd01f Issue-Id: VFC-195 Signed-off-by: fujinhua --- diff --git a/lcm/pub/msapi/sdc.py b/lcm/pub/msapi/sdc.py index 7a3e9394..b4ec1772 100644 --- a/lcm/pub/msapi/sdc.py +++ b/lcm/pub/msapi/sdc.py @@ -25,13 +25,17 @@ ASSETTYPE_RESOURCES = "resources" ASSETTYPE_SERVICES = "services" def call_sdc(resource, method, content=''): + additional_headers = { + 'X-ECOMP-InstanceID': 'VFC-NFVO-LCM' + } return restcall.call_req(base_url=SDC_BASE_URL, user=SDC_USER, passwd=SDC_PASSWD, auth_type=restcall.rest_no_auth, resource=resource, method=method, - content=content) + content=content, + additional_headers=additional_headers) def get_artifacts(asset_type): resource = "/sdc/v1/catalog/{assetType}"