summaryrefslogtreecommitdiffstats
path: root/awx/main/tasks/system.py
diff options
context:
space:
mode:
authorCesar Francisco San Nicolas Martinez <csannico@redhat.com>2023-06-06 12:36:28 +0200
committerGitHub <noreply@github.com>2023-06-06 12:36:28 +0200
commit081206965cef5739d68f431225186f88ed70eed9 (patch)
tree98c3eff8d4e100df9fe4bdd43ab06358caaf9d5b /awx/main/tasks/system.py
parentTwo silly internal cleanups (diff)
downloadawx-081206965cef5739d68f431225186f88ed70eed9.tar.xz
awx-081206965cef5739d68f431225186f88ed70eed9.zip
Generate random UUID by default for added remote nodes (#14074)
Diffstat (limited to '')
-rw-r--r--awx/main/tasks/system.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/tasks/system.py b/awx/main/tasks/system.py
index 12b1981a85..6fc42d371b 100644
--- a/awx/main/tasks/system.py
+++ b/awx/main/tasks/system.py
@@ -541,7 +541,7 @@ def cluster_node_heartbeat(dispatch_time=None, worker_tasks=None):
logger.warning(f'Heartbeat skew - interval={(nowtime - last_last_seen).total_seconds():.4f}, expected={settings.CLUSTER_NODE_HEARTBEAT_PERIOD}')
else:
if settings.AWX_AUTO_DEPROVISION_INSTANCES:
- (changed, this_inst) = Instance.objects.register(ip_address=os.environ.get('MY_POD_IP'), node_type='control', uuid=settings.SYSTEM_UUID)
+ (changed, this_inst) = Instance.objects.register(ip_address=os.environ.get('MY_POD_IP'), node_type='control', node_uuid=settings.SYSTEM_UUID)
if changed:
logger.warning(f'Recreated instance record {this_inst.hostname} after unexpected removal')
this_inst.local_health_check()