We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa19d5d commit 10e23fdCopy full SHA for 10e23fd
SoftLayer/CLI/object_storage/list_accounts.py
@@ -17,9 +17,9 @@ def cli(env):
17
accounts = mgr.list_accounts()
18
table = formatting.Table(['id', 'name', 'apiType'])
19
table.sortby = 'id'
20
- global api_type
+ api_type = None
21
for account in accounts:
22
- if 'vendorName' in account and 'Swift' == account['vendorName']:
+ if 'vendorName' in account and account['vendorName'] == 'Swift':
23
api_type = 'Swift'
24
elif 'Cleversafe' in account['serviceResource']['name']:
25
api_type = 'S3'
0 commit comments