aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/adapters/policy/interface.py
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2020-04-09 20:53:23 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2020-04-09 20:55:21 +0530
commitb0049573afad2421e7f9fc688d9a6b242c2ceeaf (patch)
tree2b71182473cf76f3d5b13fda60c5d880ab63e4a8 /osdf/adapters/policy/interface.py
parent44c3c51b585b40f432cea350c6ddd9e504998afc (diff)
Fix minor issues in policy interface
Issue-ID: OPTFRA-731 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I65e12da03b3f3881abda2dd3d1313ebe163fc3ff
Diffstat (limited to 'osdf/adapters/policy/interface.py')
-rw-r--r--osdf/adapters/policy/interface.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdf/adapters/policy/interface.py b/osdf/adapters/policy/interface.py
index e38af50..ccbd3dc 100644
--- a/osdf/adapters/policy/interface.py
+++ b/osdf/adapters/policy/interface.py
@@ -122,7 +122,7 @@ def policy_api_call(rest_client, scope_fields):
"ONAPComponent": "OOF_Component",
"ONAPInstance": "OOF_Component_Instance",
"action": "optimize",
- "resources": scope_fields}
+ "resource": scope_fields}
return rest_client.request(json=api_call_body)
def remote_api(req_json, osdf_config, service_type="placement"):
@@ -133,7 +133,7 @@ def remote_api(req_json, osdf_config, service_type="placement"):
:return: all related policies and provStatus retrieved from Subscriber policy
"""
config = osdf_config.deployment
- headers = {"Content-type: application/json"}
+ headers = {"Content-type": "application/json"}
uid, passwd = config['policyPlatformUsername'], config['policyPlatformPassword']
url = config['policyPlatformUrl']
rc = RestClient(userid=uid, passwd=passwd, headers=headers, url=url, log_func=debug_log.debug)