Skip to content

Commit 14f19da

Browse files
caberoscaberos
authored andcommitted
fix the team code review comments
1 parent e6feb69 commit 14f19da

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

SoftLayer/CLI/account/licenses.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
"""Show all licenses."""
22
# :license: MIT, see LICENSE for more details.
33
import click
4+
45
from SoftLayer import utils
56

67
from SoftLayer.CLI import environment
78
from SoftLayer.CLI import formatting
8-
from SoftLayer.managers.account import AccountManager
9+
from SoftLayer.managers import account
910

1011

1112
@click.command()
1213
@environment.pass_env
1314
def cli(env):
1415
"""Show all licenses."""
1516

16-
manager = AccountManager(env.client)
17+
manager = account.AccountManager(env.client)
1718

18-
panel_control = manager.get_active_virtual_licenses()
19+
control_panel = manager.get_active_virtual_licenses()
1920
vmwares = manager.get_active_account_licenses()
2021

2122
table_panel = formatting.KeyValueTable(['id', 'ip_address', 'manufacturer', 'software',
22-
'key', 'subnet', 'subnet notes'])
23+
'key', 'subnet', 'subnet notes'], title="Control Panel Licenses")
2324

2425
table_vmware = formatting.KeyValueTable(['name', 'license_key', 'cpus', 'description',
25-
'manufacturer', 'requiredUser'])
26-
for panel in panel_control:
26+
'manufacturer', 'requiredUser'], title="VMware Licenses")
27+
for panel in control_panel:
2728
table_panel.add_row([panel.get('id'), panel.get('ipAddress'),
2829
utils.lookup(panel, 'softwareDescription', 'manufacturer'),
2930
utils.trim_to(utils.lookup(panel, 'softwareDescription', 'longDescription'), 40),

0 commit comments

Comments
 (0)