Skip to content

Commit e68a14f

Browse files
caberoscaberos
authored andcommitted
fix the tox tool
1 parent cfcdbc2 commit e68a14f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

SoftLayer/CLI/hardware/create_credential.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ def cli(env, identifier, username, password, notes, system):
2222

2323
software = mgr.get_software_components(identifier)
2424
sw_id = None
25-
for sw in software:
26-
if (sw['softwareLicense']['softwareDescription']['name']).lower() == system:
27-
sw_id = sw['id']
25+
for sw_instance in software:
26+
if (sw_instance['softwareLicense']['softwareDescription']['name']).lower() == system:
27+
sw_id = sw_instance['id']
2828
break
2929
elif system:
30-
if (sw['softwareLicense']['softwareDescription']['name']) == 'Passmark Suite':
31-
sw_id = sw['id']
32-
break
30+
if (sw_instance['softwareLicense']['softwareDescription']['name']) == 'Passmark Suite':
31+
sw_id = sw_instance['id']
3332

3433
template = {
3534
"notes": notes,

0 commit comments

Comments
 (0)