summaryrefslogtreecommitdiffstats
path: root/osdf/optimizers/licenseopt/simple_license_allocation.py
diff options
context:
space:
mode:
authorShankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com>2018-03-22 20:29:13 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-22 20:29:13 +0000
commitb211c1919e8c04974ba8ab26ec63d34be3826e19 (patch)
tree73eadc01772752b5b6327eaca101e0f603973b9f /osdf/optimizers/licenseopt/simple_license_allocation.py
parentaa429005c6670758fcf1d895f699b03250e8035b (diff)
parent139176363ab87c7ae55ef1f224182c66a4d8fc2c (diff)
Merge "Fix "brain-overload" functions flagged by SONAR"
Diffstat (limited to 'osdf/optimizers/licenseopt/simple_license_allocation.py')
-rw-r--r--osdf/optimizers/licenseopt/simple_license_allocation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdf/optimizers/licenseopt/simple_license_allocation.py b/osdf/optimizers/licenseopt/simple_license_allocation.py
index ad9acfc..74d220f 100644
--- a/osdf/optimizers/licenseopt/simple_license_allocation.py
+++ b/osdf/optimizers/licenseopt/simple_license_allocation.py
@@ -31,10 +31,10 @@ def license_optim(request_json):
license_info = []
- for licenseDemand in request_json.get('placementInfo', {}).get('demandInfo', {}).get('licenseDemands', []):
+ for demand in request_json.get('placementInfo', {}).get('demandInfo', {}).get('licenseDemands', []):
license_info.append(
- {'serviceResourceId': licenseDemand['serviceResourceId'],
- 'resourceModuleName': licenseDemand['resourceModuleName'],
+ {'serviceResourceId': demand['serviceResourceId'],
+ 'resourceModuleName': demand['resourceModuleName'],
'entitlementPoolList': "NOT SUPPORTED",
'licenseKeyGroupList': "NOT SUPPORTED"
})