mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
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:
@@ -47,7 +47,7 @@ class Command(BaseCommand):
|
|||||||
color = '\033[90m[DISABLED] '
|
color = '\033[90m[DISABLED] '
|
||||||
if no_color:
|
if no_color:
|
||||||
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:
|
if x.capacity:
|
||||||
fmt += ' heartbeat="{0.modified:%Y-%m-%d %H:%M:%S}"'
|
fmt += ' heartbeat="{0.modified:%Y-%m-%d %H:%M:%S}"'
|
||||||
print((fmt + '\033[0m').format(x, x.version or '?'))
|
print((fmt + '\033[0m').format(x, x.version or '?'))
|
||||||
|
|||||||
Reference in New Issue
Block a user