aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/sdnc/catalog/operations_catalog.py
diff options
context:
space:
mode:
Diffstat (limited to 'onap-client/onap_client/sdnc/catalog/operations_catalog.py')
-rw-r--r--onap-client/onap_client/sdnc/catalog/operations_catalog.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/onap-client/onap_client/sdnc/catalog/operations_catalog.py b/onap-client/onap_client/sdnc/catalog/operations_catalog.py
index 2d9662b..79e6f29 100644
--- a/onap-client/onap_client/sdnc/catalog/operations_catalog.py
+++ b/onap-client/onap_client/sdnc/catalog/operations_catalog.py
@@ -34,16 +34,11 @@
# limitations under the License.
#
# ============LICENSE_END============================================
-
import uuid
from functools import partial
-from onap_client import config
from onap_client.sdnc.client import SDNCClient
-PAYLOADS_DIR = config.PAYLOADS_DIR
-application_id = config.APPLICATION_ID
-
class OperationsClient(SDNCClient):
@property
@@ -67,7 +62,7 @@ class OperationsClient(SDNCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"X-TransactionId": str(uuid.uuid4()),
- "X-FromAppId": application_id,
+ "X-FromAppId": self.config.application_id,
},
"auth": (self.config.sdnc.SDNC_USERNAME, self.config.sdnc.SDNC_PASSWORD,),
},
@@ -85,7 +80,7 @@ class OperationsClient(SDNCClient):
"Accept": "application/json",
"Content-Type": "application/json",
"X-TransactionId": str(uuid.uuid4()),
- "X-FromAppId": application_id,
+ "X-FromAppId": self.config.application_id,
},
"auth": (self.config.sdnc.SDNC_USERNAME, self.config.sdnc.SDNC_PASSWORD,),
},