mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
code logic fix and vmware active var updated
This commit is contained in:
@@ -1361,9 +1361,9 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
|
|
||||||
vmware_opts = dict(inventory_update.source_vars_dict.items())
|
vmware_opts = dict(inventory_update.source_vars_dict.items())
|
||||||
if inventory_update.instance_filters:
|
if inventory_update.instance_filters:
|
||||||
inventory_update.setdefault('host_filters', inventory_update.instance_filters)
|
vmware_opts.setdefault('host_filters', inventory_update.instance_filters)
|
||||||
if inventory_update.group_by:
|
if inventory_update.group_by:
|
||||||
inventory_update.setdefault('groupby_patterns', inventory_update.groupby_patterns)
|
vmware_opts.setdefault('groupby_patterns', inventory_update.groupby_patterns)
|
||||||
|
|
||||||
for k,v in vmware_opts.items():
|
for k,v in vmware_opts.items():
|
||||||
cp.set(section, k, unicode(v))
|
cp.set(section, k, unicode(v))
|
||||||
|
|||||||
@@ -663,8 +663,8 @@ VMWARE_REGIONS_BLACKLIST = []
|
|||||||
|
|
||||||
# Inventory variable name/values for determining whether a host is
|
# Inventory variable name/values for determining whether a host is
|
||||||
# active in vSphere.
|
# active in vSphere.
|
||||||
VMWARE_ENABLED_VAR = 'vmware_powerState'
|
VMWARE_ENABLED_VAR = 'guest.gueststate'
|
||||||
VMWARE_ENABLED_VALUE = 'poweredOn'
|
VMWARE_ENABLED_VALUE = 'running'
|
||||||
|
|
||||||
# Inventory variable name containing the unique instance ID.
|
# Inventory variable name containing the unique instance ID.
|
||||||
VMWARE_INSTANCE_ID_VAR = 'vmware_uuid'
|
VMWARE_INSTANCE_ID_VAR = 'vmware_uuid'
|
||||||
|
|||||||
Reference in New Issue
Block a user