Skip to content

Commit 29c2374

Browse files
committed
Adds image status to image detail command
1 parent be20777 commit 29c2374

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

SoftLayer/CLI/modules/image.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
MASK = ('id,accountId,name,globalIdentifier,parentId,publicFlag,flexImageFlag,'
2222
'imageType')
2323
DETAIL_MASK = MASK + (',children[id,blockDevicesDiskSpaceTotal,datacenter],'
24-
'note,createDate')
24+
'note,createDate,status')
2525
PUBLIC_TYPE = formatting.FormattedItem('PUBLIC', 'Public')
2626
PRIVATE_TYPE = formatting.FormattedItem('PRIVATE', 'Private')
2727

@@ -106,6 +106,10 @@ def execute(self, args):
106106
table.add_row(['global_identifier',
107107
image.get('globalIdentifier', formatting.blank())])
108108
table.add_row(['name', image['name'].strip()])
109+
table.add_row(['status', formatting.FormattedItem(
110+
utils.lookup(image, 'status', 'keyname'),
111+
utils.lookup(image, 'status', 'name'),
112+
)])
109113
table.add_row(['account', image.get('accountId', formatting.blank())])
110114
table.add_row(['visibility',
111115
PUBLIC_TYPE if image['publicFlag'] else PRIVATE_TYPE])

0 commit comments

Comments
 (0)