mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Added node_type on awx-manage list_instances commmand
(cherry picked from commit 683145e3eaa8b13da59bc51e57dff98f25d3554d)
This commit is contained in:
committed by
Shane McDonald
parent
3065e29deb
commit
d6b4b9f973
@@ -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