From 88a6412b546560561a5510792a4f0bab79d6f2c2 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Wed, 25 Aug 2021 12:51:21 -0700 Subject: [PATCH] only need to update IG's policy_instance_list field --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 155a4f0e2e..68429dd759 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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))