diff options
author | Shankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com> | 2018-03-22 20:29:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-22 20:29:13 +0000 |
commit | b211c1919e8c04974ba8ab26ec63d34be3826e19 (patch) | |
tree | 73eadc01772752b5b6327eaca101e0f603973b9f /osdf/optimizers/licenseopt/simple_license_allocation.py | |
parent | aa429005c6670758fcf1d895f699b03250e8035b (diff) | |
parent | 139176363ab87c7ae55ef1f224182c66a4d8fc2c (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.py | 6 |
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" }) |