Skip to content

Commit 4a15aad

Browse files
caberoscaberos
authored andcommitted
fix the tox analysis
1 parent 1574911 commit 4a15aad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

SoftLayer/CLI/licenses/cancel.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ def cli(env, key, immediate):
1818

1919
if not immediate:
2020
immediate = False
21-
vmware_find = False
22-
license = LicensesManager(env.client)
21+
vm_ware_find = False
22+
licenses = LicensesManager(env.client)
2323

24-
vmware_licenses = license.get_all_objects()
24+
vm_ware_licenses = licenses.get_all_objects()
2525

26-
for vmware in vmware_licenses:
27-
if vmware.get('key') == key:
28-
vmware_find = True
29-
license.cancel_item(utils.lookup(vmware, 'billingItem', 'id'),
26+
for vm_ware in vm_ware_licenses:
27+
if vm_ware.get('key') == key:
28+
vm_ware_find = True
29+
licenses.cancel_item(utils.lookup(vm_ware, 'billingItem', 'id'),
3030
immediate,
3131
'Cancel by cli command',
3232
'Cancel by cli command')
3333
break
3434

35-
if not vmware_find:
35+
if not vm_ware_find:
3636
raise exceptions.CLIAbort(
3737
"The VMware not found, try whit another key")

0 commit comments

Comments
 (0)