Skip to content

Commit 10e23fd

Browse files
author
Fernando Ojeda
committed
Fix object storage apiType for S3 and Swift.
1 parent fa19d5d commit 10e23fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SoftLayer/CLI/object_storage/list_accounts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def cli(env):
1717
accounts = mgr.list_accounts()
1818
table = formatting.Table(['id', 'name', 'apiType'])
1919
table.sortby = 'id'
20-
global api_type
20+
api_type = None
2121
for account in accounts:
22-
if 'vendorName' in account and 'Swift' == account['vendorName']:
22+
if 'vendorName' in account and account['vendorName'] == 'Swift':
2323
api_type = 'Swift'
2424
elif 'Cleversafe' in account['serviceResource']['name']:
2525
api_type = 'S3'

0 commit comments

Comments
 (0)