We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf5842 commit 6550851Copy full SHA for 6550851
src/warnet/namespaces.py
@@ -56,8 +56,11 @@ def destroy(destroy_all: bool, namespace: str):
56
sclient: CoreV1Api = get_static_client()
57
if destroy_all:
58
all_namespaces = sclient.list_namespace()
59
- warnet_namespaces = [ns.metadata.name for ns in all_namespaces.items
60
- if ns.metadata.name.startswith("warnet-")]
+ warnet_namespaces = [
+ ns.metadata.name
61
+ for ns in all_namespaces.items
62
+ if ns.metadata.name.startswith("warnet-")
63
+ ]
64
65
if not warnet_namespaces:
66
print("No warnet namespaces found to destroy.")
0 commit comments