From 82679ce9a3cbb904bd0f306430882698ff0ef60f Mon Sep 17 00:00:00 2001 From: Jose Angel Morena Date: Tue, 6 Sep 2022 17:14:19 +0200 Subject: [PATCH] replace modified by last_seen in heartbeat --- awx/main/management/commands/list_instances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/list_instances.py b/awx/main/management/commands/list_instances.py index 8a22c55b5a..578280d5c2 100644 --- a/awx/main/management/commands/list_instances.py +++ b/awx/main/management/commands/list_instances.py @@ -54,7 +54,7 @@ class Command(BaseCommand): capacity = f' capacity={x.capacity}' if x.node_type != 'hop' else '' version = f" version={x.version or '?'}" if x.node_type != 'hop' else '' - heartbeat = f' heartbeat="{x.modified:%Y-%m-%d %H:%M:%S}"' if x.capacity or x.node_type == 'hop' else '' + heartbeat = f' heartbeat="{x.last_seen:%Y-%m-%d %H:%M:%S}"' if x.capacity or x.node_type == 'hop' else '' print(f'\t{color}{x.hostname}{capacity} node_type={x.node_type}{version}{heartbeat}\033[0m') print()