Merge pull request #5345 from ansible/node_type_list_instances

[4.1] - Added node_type on awx-manage list_instances commmand
This commit is contained in:
Marcelo Moreira de Mello
2021-10-15 23:25:17 -04:00
committed by GitHub

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 '?'))