Skip to content

Commit

Permalink
Update list_guests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
d3rnn authored Jul 3, 2024
1 parent c1789ff commit 6581ed1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SoftLayer/CLI/dedicatedhost/list_guests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.CLI import helpers
from SoftLayer import utils

COLUMNS = [
column_helper.Column('guid', ('globalIdentifier',)),
Expand All @@ -18,7 +19,8 @@
column_helper.Column('backend_ip', ('primaryBackendIpAddress',)),
column_helper.Column(
'created_by',
('billingItem', 'orderItem', 'order', 'userRecord', 'username')),
lambda created_by: utils.lookup(created_by, 'billingItem', 'orderItem', 'order', 'userRecord', 'username'),
mask='billingItem[id,orderItem[id,order[id,userRecord[username]]]]'),
column_helper.Column('power_state', ('powerState', 'name')),
column_helper.Column(
'tags',
Expand Down

0 comments on commit 6581ed1

Please sign in to comment.