diff options
Diffstat (limited to 'contrib/inventory/abiquo.py')
-rwxr-xr-x | contrib/inventory/abiquo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/inventory/abiquo.py b/contrib/inventory/abiquo.py index cd068e482b..04f7d4e60d 100755 --- a/contrib/inventory/abiquo.py +++ b/contrib/inventory/abiquo.py @@ -149,15 +149,15 @@ def generate_inv_from_api(enterprise_entity,config): vm_state = False if not vm_nic == None and vm_state: - if not vm_vapp in inventory.keys(): + if vm_vapp not in inventory: inventory[vm_vapp] = {} inventory[vm_vapp]['children'] = [] inventory[vm_vapp]['hosts'] = [] - if not vm_vdc in inventory.keys(): + if vm_vdc not in inventory: inventory[vm_vdc] = {} inventory[vm_vdc]['hosts'] = [] inventory[vm_vdc]['children'] = [] - if not vm_template in inventory.keys(): + if vm_template not in inventory: inventory[vm_template] = {} inventory[vm_template]['children'] = [] inventory[vm_template]['hosts'] = [] |