aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/optimizers/licenseopt/simple_license_allocation.py
diff options
context:
space:
mode:
authorShankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com>2019-11-07 17:46:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-07 17:46:53 +0000
commit5293a382b6463069d4a2cc87806426d74833aa2e (patch)
tree47b3ab94e2ba99972c8a8d7fcdfc1da9a94aaa00 /osdf/optimizers/licenseopt/simple_license_allocation.py
parenteea1300171509e7f5c6aa5e9e01f88a7afa24d0b (diff)
parent15a847b3bebd604113414938c1345fe47b2c51b5 (diff)
Merge "Add onap log spec 1.2 for osdf"
Diffstat (limited to 'osdf/optimizers/licenseopt/simple_license_allocation.py')
-rw-r--r--osdf/optimizers/licenseopt/simple_license_allocation.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdf/optimizers/licenseopt/simple_license_allocation.py b/osdf/optimizers/licenseopt/simple_license_allocation.py
index 74d220f..b2aaba4 100644
--- a/osdf/optimizers/licenseopt/simple_license_allocation.py
+++ b/osdf/optimizers/licenseopt/simple_license_allocation.py
@@ -15,6 +15,7 @@
#
# -------------------------------------------------------------------------
#
+from osdf.utils.mdc_utils import mdc_from_json
def license_optim(request_json):
@@ -24,6 +25,7 @@ def license_optim(request_json):
:param request_json: Request in a JSON format
:return: A tuple of licensekey-group-uuid-list and entitlement-group-uuid-list
"""
+ mdc_from_json(request_json)
req_id = request_json["requestInfo"]["requestId"]
model_name = request_json.get('placementInfo', {}).get('serviceInfo', {}).get('modelInfo', {}).get('modelName')