diff --git a/bonfire/openshift.py b/bonfire/openshift.py index 61e279eb..0bf44d99 100644 --- a/bonfire/openshift.py +++ b/bonfire/openshift.py @@ -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") @@ -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