Skip to content

Commit 6581ed1

Browse files
authored
Update list_guests.py
1 parent c1789ff commit 6581ed1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SoftLayer/CLI/dedicatedhost/list_guests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from SoftLayer.CLI import environment
99
from SoftLayer.CLI import formatting
1010
from SoftLayer.CLI import helpers
11+
from SoftLayer import utils
1112

1213
COLUMNS = [
1314
column_helper.Column('guid', ('globalIdentifier',)),
@@ -18,7 +19,8 @@
1819
column_helper.Column('backend_ip', ('primaryBackendIpAddress',)),
1920
column_helper.Column(
2021
'created_by',
21-
('billingItem', 'orderItem', 'order', 'userRecord', 'username')),
22+
lambda created_by: utils.lookup(created_by, 'billingItem', 'orderItem', 'order', 'userRecord', 'username'),
23+
mask='billingItem[id,orderItem[id,order[id,userRecord[username]]]]'),
2224
column_helper.Column('power_state', ('powerState', 'name')),
2325
column_helper.Column(
2426
'tags',

0 commit comments

Comments
 (0)