mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
only need to update IG's policy_instance_list field
This commit is contained in:
parent
502eaf9fb9
commit
88a6412b54
@ -464,7 +464,7 @@ def inspect_execution_nodes(instance_list):
|
||||
default_ig = InstanceGroup.objects.get(name='default')
|
||||
if instance.hostname not in default_ig.policy_instance_list:
|
||||
default_ig.policy_instance_list += [instance.hostname]
|
||||
default_ig.save()
|
||||
default_ig.save(update_fields=['policy_instance_list'])
|
||||
logger.warn("Updated `default` instance group's policy_instance_list to include execution node '{}'".format(hostname))
|
||||
else:
|
||||
logger.warn("`default` instance group's policy_instance_list already listed execution node '{}'".format(hostname))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user