Skip to content

Commit

Permalink
Fix keyerror in stemcell fetch command
Browse files Browse the repository at this point in the history
  • Loading branch information
keshto committed Sep 25, 2019
1 parent caab403 commit 2ea9a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tile_generator/opsmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,6 @@ def get_stemcells():
response = get('/api/v0/diagnostic_report', check=False)
if response.status_code == requests.codes.ok:
diag = response.json()
stemcells = diag['stemcells'] or diag['available_stemcells'] or []
stemcells = diag.get('stemcells') or diag.get('available_stemcells') or []
return stemcells
return []

0 comments on commit 2ea9a1c

Please sign in to comment.