Skip to content

Commit

Permalink
Set ready based on ns label AND env status
Browse files Browse the repository at this point in the history
  • Loading branch information
bsquizz committed Oct 21, 2021
1 parent 24800a7 commit f33c8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bonfire/namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f33c8cd

Please sign in to comment.