Skip to content

Commit 9479d91

Browse files
author
Fernando Ojeda
committed
Refactor object storage credentials.
1 parent 05ffff5 commit 9479d91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SoftLayer/CLI/object_storage/credential/limit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def cli(env, identifier):
1515
"""Credential limits for this IBM Cloud Object Storage account."""
1616

1717
mgr = SoftLayer.ObjectStorageManager(env.client)
18-
limit = mgr.limit_credential(identifier)
18+
credential_limit = mgr.limit_credential(identifier)
1919
table = formatting.Table(['limit'])
2020
table.add_row([
21-
limit,
21+
credential_limit,
2222
])
2323

2424
env.fout(table)

SoftLayer/CLI/object_storage/credential/list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def cli(env, identifier):
1515
"""Retrieve credentials used for generating an AWS signature. Max of 2."""
1616

1717
mgr = SoftLayer.ObjectStorageManager(env.client)
18-
list = mgr.list_credential(identifier)
18+
credential_list = mgr.list_credential(identifier)
1919
table = formatting.Table(['id', 'password', 'username', 'type_name'])
2020

21-
for credential in list:
21+
for credential in credential_list:
2222
table.add_row([
2323
credential['id'],
2424
credential['password'],

0 commit comments

Comments
 (0)