From 561fc289fb42af00aa49c25f42d3ca2a14c1f44b Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Tue, 24 Aug 2021 15:11:48 -0700 Subject: [PATCH] disable discovered instances by default --- awx/main/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 47d55cab72..aaa09485e8 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -446,7 +446,8 @@ def inspect_execution_nodes(instance_list): if hostname in node_lookup: instance = node_lookup[hostname] else: - (changed, instance) = Instance.objects.register(hostname=hostname, node_type='execution') + defaults = dict(enabled=False) + (changed, instance) = Instance.objects.register(hostname=hostname, node_type='execution', defaults=defaults) was_lost = instance.is_lost(ref_time=nowtime) last_seen = parse_date(ad['Time'])