From 3d3828748e406e72d6e92051cf1aad634be973c7 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..ca93007f4a 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), + f"{self.kube_cmd} {kube_get_cmd} node {node}", subdir='nodes' )