Skip to content

Commit

Permalink
Do not check for Reservation on minikube/k8s (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz authored Nov 18, 2021
1 parent c256c05 commit c4fcde9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bonfire/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@ def _find_reservation():


def check_for_existing_reservation(requester):
if on_k8s():
return False

log.info("Checking for existing reservations for '%s'", requester)

all_res = get_json("reservation")
Expand All @@ -768,6 +771,9 @@ def check_for_existing_reservation(requester):


def get_reservation(name=None, namespace=None, requester=None):
if on_k8s():
return False

if name:
res = get_json("reservation", name=name)
return res if res else False
Expand Down

0 comments on commit c4fcde9

Please sign in to comment.