Skip to content

Commit 4ff8aba

Browse files
Fix tox analysis.
1 parent 75444c4 commit 4ff8aba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

SoftLayer/CLI/virt/authorize_storage.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
@environment.pass_env
2020
def cli(env, identifier, username_storage, portable_id):
2121
"""Authorize File, Block and Portable Storage to a Virtual Server."""
22-
vs = SoftLayer.VSManager(env.client)
23-
vs_id = helpers.resolve_id(vs.resolve_ids, identifier, 'vs')
22+
virtual = SoftLayer.VSManager(env.client)
23+
virtual_id = helpers.resolve_id(virtual.resolve_ids, identifier, 'virtual')
2424
table = formatting.KeyValueTable(['name', 'value'], title="Portable Storage Detail")
2525
table.align['name'] = 'r'
2626
table.align['value'] = 'l'
2727

2828
if username_storage:
29-
if not vs.authorize_storage(vs_id, username_storage):
29+
if not virtual.authorize_storage(virtual_id, username_storage):
3030
raise exceptions.CLIAbort('Authorize Volume Failed')
3131
env.fout('Successfully Volume: %s was Added.' % username_storage)
3232
if portable_id:
33-
portable_id = helpers.resolve_id(vs.resolve_ids, portable_id, 'storage')
34-
portable_result = vs.attach_portable_storage(vs_id, portable_id)
33+
portable_id = helpers.resolve_id(virtual.resolve_ids, portable_id, 'storage')
34+
portable_result = virtual.attach_portable_storage(virtual_id, portable_id)
3535

3636
env.fout('Successfully Portable Storage: %i was Added.' % portable_id)
3737

0 commit comments

Comments
 (0)