From f33c8cd30c9e28b25eacbc80046f1a61d538f6f2 Mon Sep 17 00:00:00 2001 From: Brandon Squizzato Date: Thu, 21 Oct 2021 13:46:00 -0400 Subject: [PATCH] Set ready based on ns label AND env status --- bonfire/namespaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bonfire/namespaces.py b/bonfire/namespaces.py index 194bfa61..32237f5e 100644 --- a/bonfire/namespaces.py +++ b/bonfire/namespaces.py @@ -224,7 +224,7 @@ def get_namespaces(available=False, mine=False): ephemeral_namespaces = [] for ns in all_namespaces: - ns.ready = env_ready_for_ns.get(ns.name, False) + ns.ready = ns.ready and env_ready_for_ns.get(ns.name, False) if not ns.is_reservable: continue get_all = not mine and not available @@ -493,7 +493,7 @@ def get_namespaces_for_reconciler(): ) continue ns = Namespace(namespace_data=ns) - ns.ready = env_ready_for_ns.get(ns.name, False) + ns.ready = ns.ready and env_ready_for_ns.get(ns.name, False) ephemeral_namespaces.append(ns) return ephemeral_namespaces