From 44c204414d7a692e63017a15d249fb94b64189f5 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 7 Feb 2024 19:19:03 +0000 Subject: [PATCH] [kubernetes] Capture json output for nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit json outputs are easier to parse than the default output, so lets capture these. Resolves: #3484 Co-authored-by: Hervé CHIBOIS Signed-off-by: Jose Castillo --- sos/report/plugins/kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/report/plugins/kubernetes.py b/sos/report/plugins/kubernetes.py index cfdec619fd..0a8f932a53 100644 --- a/sos/report/plugins/kubernetes.py +++ b/sos/report/plugins/kubernetes.py @@ -112,7 +112,7 @@ def setup(self): continue node = words[0] self.add_cmd_output( - "%s describe node %s" % (self.kube_cmd, node), + "%s %s node %s" % (self.kube_cmd, kube_get_cmd, node), subdir='nodes' )