diff options
author | 2018-05-23 07:18:45 -0700 | |
---|---|---|
committer | 2018-05-23 07:22:00 -0700 | |
commit | 4d7952a6082d3bad5c5a931c491b94fa563b44a6 (patch) | |
tree | 5f5366c165f5e4c4ed0df4e07475c440dd44e5f5 /conductor | |
parent | 2302ee99d350173972cfc0249f225a13ed59d3cd (diff) |
Fix matching issues for attribute blockv1.1.1
For cloud inventory type empty strings
in the attribute block of the demand are
being matched
Issue-ID: OPTFRA-244
Change-Id: I0ac3a256f32ba497d9f74ddb8ca873604ca67773
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Diffstat (limited to 'conductor')
-rw-r--r-- | conductor/conductor/data/plugins/inventory_provider/aai.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conductor/conductor/data/plugins/inventory_provider/aai.py b/conductor/conductor/data/plugins/inventory_provider/aai.py index b556ef7..4a9748d 100644 --- a/conductor/conductor/data/plugins/inventory_provider/aai.py +++ b/conductor/conductor/data/plugins/inventory_provider/aai.py @@ -741,6 +741,9 @@ class AAI(base.InventoryProviderBase): attribute_key == 'model-version-id'): continue + if not attribute_values: + continue + match_type = 'any' if type(attribute_values) is dict: if 'any' in attribute_values: |