Skip to content

Commit e4cc32a

Browse files
caberoscaberos
authored andcommitted
fix the tox tool
1 parent 4f18785 commit e4cc32a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

SoftLayer/CLI/user/device_access.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@ def cli(env, identifier):
2424

2525
hardwares = mgr.get_user_hardware(identifier)
2626
dedicatedhosts = mgr.get_user_dedicated_host(identifier)
27-
virtualGuests = mgr.get_user_virtuals(identifier)
27+
virtual_guests = mgr.get_user_virtuals(identifier)
2828
hardware_table = formatting.KeyValueTable(['Id', 'Device Name', 'Device type', 'Public Ip', 'Private Ip', 'notes'])
2929
virtual_table = formatting.KeyValueTable(['Id', 'Device Name', 'Device type', 'Public Ip', 'Private Ip', 'notes'])
3030
dedicated_table = formatting.KeyValueTable(['Id', 'Device Name', 'Device type', 'notes'])
3131

3232
hardware_table.align['Device Name'] = 'l'
3333
dedicated_table.align['Device Name'] = 'l'
3434
virtual_table.align['Device Name'] = 'l'
35-
for hw in hardwares:
36-
hardware_table.add_row([hw.get('id'),
37-
hw.get('fullyQualifiedDomainName'),
35+
for hardware in hardwares:
36+
hardware_table.add_row([hardware.get('id'),
37+
hardware.get('fullyQualifiedDomainName'),
3838
'Bare Metal',
39-
hw.get('primaryIpAddress'),
40-
hw.get('primaryBackendIpAddress'),
41-
hw.get('notes') or '-'])
39+
hardware.get('primaryIpAddress'),
40+
hardware.get('primaryBackendIpAddress'),
41+
hardware.get('notes') or '-'])
4242
for host in dedicatedhosts:
4343
dedicated_table.add_row([host.get('id'),
4444
host.get('name'),
4545
'Dedicated Host',
4646
host.get('notes') or '-'])
47-
for vs in virtualGuests:
48-
virtual_table.add_row([vs.get('id'),
49-
vs.get('fullyQualifiedDomainName'),
47+
for virtual in virtual_guests:
48+
virtual_table.add_row([virtual.get('id'),
49+
virtual.get('fullyQualifiedDomainName'),
5050
'virtual Guests',
51-
vs.get('primaryIpAddress'),
52-
vs.get('primaryBackendIpAddress'),
53-
vs.get('notes') or '-'])
51+
virtual.get('primaryIpAddress'),
52+
virtual.get('primaryBackendIpAddress'),
53+
virtual.get('notes') or '-'])
5454

5555
table.add_row(['Permission', permission_table])
5656
table.add_row(['Hardware', hardware_table])

0 commit comments

Comments
 (0)