Added node_type on awx-manage list_instances commmand

(cherry picked from commit 683145e3eaa8b13da59bc51e57dff98f25d3554d)
This commit is contained in:
Marcelo Moreira de Mello 2021-10-13 11:36:15 -04:00 committed by Shane McDonald
parent 3065e29deb
commit d6b4b9f973
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -47,7 +47,7 @@ class Command(BaseCommand):
color = '\033[90m[DISABLED] '
if no_color:
color = ''
fmt = '\t' + color + '{0.hostname} capacity={0.capacity} version={1}'
fmt = '\t' + color + '{0.hostname} capacity={0.capacity} node_type={0.node_type} version={1}'
if x.capacity:
fmt += ' heartbeat="{0.modified:%Y-%m-%d %H:%M:%S}"'
print((fmt + '\033[0m').format(x, x.version or '?'))