Skip to content

Commit 2d2c65d

Browse files
committed
Fixed #84 -- no stacktrace when deis providers comes up empty.
1 parent 313200c commit 2d2c65d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/deis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,8 @@ def providers_list(self, args):
12671267
print("=== {owner} Providers".format(**data['results'][0]))
12681268
for item in data['results']:
12691269
creds = json.loads(item['creds'])
1270-
creds.pop('secret_key')
1270+
if 'secret_key' in creds:
1271+
creds.pop('secret_key')
12711272
print("{} => {}".format(item['id'], creds))
12721273
else:
12731274
print('Error!', response.text)

0 commit comments

Comments
 (0)