diff options
author | Cesar Francisco San Nicolas Martinez <csannico@redhat.com> | 2023-06-06 12:36:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 12:36:28 +0200 |
commit | 081206965cef5739d68f431225186f88ed70eed9 (patch) | |
tree | 98c3eff8d4e100df9fe4bdd43ab06358caaf9d5b /awx/main/tasks/system.py | |
parent | Two silly internal cleanups (diff) | |
download | awx-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.py | 2 |
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() |