|
19 | 19 | column_helper.Column('backend_ip', ('primaryBackendIpAddress',)),
|
20 | 20 | column_helper.Column('datacenter', ('datacenter', 'name')),
|
21 | 21 | column_helper.Column('action', lambda guest: formatting.active_txn(guest),
|
22 |
| - mask=''' |
23 |
| - activeTransaction[ |
24 |
| - id,transactionStatus[name,friendlyName] |
25 |
| - ]'''), |
| 22 | + mask='activeTransaction[id,transactionStatus[name,friendlyName]]'), |
26 | 23 | column_helper.Column('power_state', ('powerState', 'name')),
|
27 |
| - column_helper.Column( |
28 |
| - 'created_by', |
29 |
| - ('billingItem', 'orderItem', 'order', 'userRecord', 'username')), |
30 |
| - column_helper.Column( |
31 |
| - 'tags', |
32 |
| - lambda server: formatting.tags(server.get('tagReferences')), |
33 |
| - mask="tagReferences.tag.name"), |
| 24 | + column_helper.Column('created_by', ('billingItem', 'orderItem', 'order', 'userRecord', 'username')), |
| 25 | + column_helper.Column('tags', lambda server: formatting.tags(server.get('tagReferences')), |
| 26 | + mask="tagReferences.tag.name"), |
34 | 27 | column_helper.Column(
|
35 | 28 | 'createDate',
|
36 | 29 | lambda guest: utils.clean_time(guest.get('createDate'),
|
|
59 | 52 | @click.option('--network', '-n', help='Network port speed in Mbps')
|
60 | 53 | @click.option('--hourly', is_flag=True, help='Show only hourly instances')
|
61 | 54 | @click.option('--monthly', is_flag=True, help='Show only monthly instances')
|
62 |
| -@click.option('--tag', '-t', help='list of tags') |
| 55 | +@click.option('--tag', '-t', help='list of tags', multiple=True) |
63 | 56 | @click.option('--transient', help='Filter by transient instances', type=click.BOOL)
|
64 | 57 | @click.option('--search', is_flag=False, flag_value="", default=None,
|
65 | 58 | help="Use the more flexible Search API to list instances. See `slcli search --types` for list " +
|
|
0 commit comments