Skip to content

Commit

Permalink
Don't check 'active' twice
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Dec 13, 2021
1 parent 070a5ed commit 23227ff
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 @@ -780,7 +780,7 @@ def check_for_existing_reservation(requester):
all_res = get_json("reservation")

for res in all_res["items"]:
res_state = res.get("status", {}).get("state") == "active"
res_state = res.get("status", {}).get("state")
if res["spec"]["requester"] == requester and res_state == "active":
return True

Expand Down

0 comments on commit 23227ff

Please sign in to comment.