diff options
author | Chayal, Avteet (ac229e) <ac229e@att.com> | 2019-02-12 18:37:26 +0000 |
---|---|---|
committer | Chayal, Avteet (ac229e) <ac229e@att.com> | 2019-02-12 18:37:53 +0000 |
commit | 785714bc52f66efec8044933779bd3b1f41f29c5 (patch) | |
tree | 69963df5dfdff2841309acbd8dd60a44e913997e /osdf | |
parent | 7132d6dc7d09fef84b3454b0ca7a71134d18be5c (diff) |
Fix to populate missing fields in request to HAS
Populate requiredCandidates and excludedCandidates for HAS
Issue-ID: OPTFRA-438
Change-Id: I23702a572ce3645aa52d27e7a8d58f775349cbb8
Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
Diffstat (limited to 'osdf')
-rw-r--r-- | osdf/optimizers/placementopt/conductor/translation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdf/optimizers/placementopt/conductor/translation.py b/osdf/optimizers/placementopt/conductor/translation.py index f74f461..93b80bf 100644 --- a/osdf/optimizers/placementopt/conductor/translation.py +++ b/osdf/optimizers/placementopt/conductor/translation.py @@ -205,7 +205,7 @@ def get_candidates_demands(demand): for k, v in policy_config_mapping['candidates'].items(): if k not in demand: continue - res[v] = [{'inventory_type': x['candidateType'], 'candidate_id': x['candidates']} for x in demand[k]] + res[v] = [{'inventory_type': x['identifierType'], 'candidate_id': x['identifiers']} for x in demand[k]] return res |