mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
disable discovered instances by default
This commit is contained in:
@@ -446,7 +446,8 @@ def inspect_execution_nodes(instance_list):
|
|||||||
if hostname in node_lookup:
|
if hostname in node_lookup:
|
||||||
instance = node_lookup[hostname]
|
instance = node_lookup[hostname]
|
||||||
else:
|
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)
|
was_lost = instance.is_lost(ref_time=nowtime)
|
||||||
last_seen = parse_date(ad['Time'])
|
last_seen = parse_date(ad['Time'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user