Skip to content

Commit

Permalink
if namespace value is empty - return False (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-RH authored Jan 14, 2022
1 parent ea4c4be commit 2b36137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bonfire/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def wait_on_reservation(res_name, timeout):

def _find_reservation():
res = get_json("reservation", name=res_name)
return res.get("status", {}).get("namespace", False)
return res.get("status", {}).get("namespace", False) or False

ns_name, elapsed = wait_for(
_find_reservation,
Expand Down

0 comments on commit 2b36137

Please sign in to comment.