From 2b361371f62059c13753fa5e3c400eb86d4a13de Mon Sep 17 00:00:00 2001 From: Jason Stephens <48523896+Jason-RH@users.noreply.github.com> Date: Fri, 14 Jan 2022 10:29:17 -0500 Subject: [PATCH] if namespace value is empty - return False (#171) --- bonfire/openshift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonfire/openshift.py b/bonfire/openshift.py index a00ab17e..db893832 100644 --- a/bonfire/openshift.py +++ b/bonfire/openshift.py @@ -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,