diff options
author | krishnaa96 <krishna.moorthy6@wipro.com> | 2021-07-20 16:29:04 +0530 |
---|---|---|
committer | krishnaa96 <krishna.moorthy6@wipro.com> | 2021-07-23 17:16:55 +0530 |
commit | e7517139524f20362341a623f047243cd46f9bd0 (patch) | |
tree | a4a24ff681ed8b2e35d1c796631448b7a122bb3a | |
parent | 36a92ba8e747431edaef2b66a23410cd8799534f (diff) |
Ignore missing field from AAI data
Issue-ID: OPTFRA-968
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I8c20214107b7a6eac096c43f3921a4bb6194c121
-rw-r--r-- | conductor/conductor/data/plugins/inventory_provider/aai.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conductor/conductor/data/plugins/inventory_provider/aai.py b/conductor/conductor/data/plugins/inventory_provider/aai.py index 93b0a3b..bdc74bc 100644 --- a/conductor/conductor/data/plugins/inventory_provider/aai.py +++ b/conductor/conductor/data/plugins/inventory_provider/aai.py @@ -763,7 +763,8 @@ class AAI(base.InventoryProviderBase): if match_type == 'any': if attribute_key not in inventory_attributes or \ - (len(attribute_values) > 0 and inventory_attributes[attribute_key] not in attribute_values): + (len(attribute_values) > 0 and inventory_attributes[attribute_key] and + inventory_attributes[attribute_key] not in attribute_values): return False elif match_type == 'not': # drop the candidate when |