From 51dfbab1eabd59fa7206b724ef6ae8fa818c3091 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Fri, 10 May 2024 06:36:08 +0300 Subject: [PATCH] suppress kubectl warnings --- kls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kls b/kls index 171f1e6..cb10968 100755 --- a/kls +++ b/kls @@ -210,7 +210,7 @@ def catch_input(menu: Menu): def kubectl(command: str) -> list: - return subprocess.check_output(f"kubectl {command}", shell=True).decode().strip().split("\n") + return subprocess.check_output(f"kubectl {command} 2> /dev/null", shell=True).decode().strip().split("\n") def enable_mouse_support():