Skip to content

Commit 576ab30

Browse files
authored
Update list.py
1 parent 2fd0c4d commit 576ab30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SoftLayer/CLI/virt/list.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
column_helper.Column('action', lambda guest: formatting.active_txn(guest),
2222
mask='activeTransaction[id,transactionStatus[name,friendlyName]]'),
2323
column_helper.Column('power_state', ('powerState', 'name')),
24-
column_helper.Column('created_by', ('billingItem', 'orderItem', 'order', 'userRecord', 'username')),
24+
column_helper.Column('created_by', lambda created_by: utils.lookup(created_by, 'billingItem', 'orderItem', 'order', 'userRecord', 'username'),
25+
mask='billingItem[id,orderItem[id,order[id,userRecord[username]]]]'),
2526
column_helper.Column('tags', lambda server: formatting.tags(server.get('tagReferences')),
2627
mask="tagReferences.tag.name"),
2728
column_helper.Column(

0 commit comments

Comments
 (0)