Skip to content

Commit

Permalink
[kubernetes] Capture json output for nodes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jcastill committed Feb 7, 2024
1 parent 480d3ed commit 44c2044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/report/plugins/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)

Expand Down

0 comments on commit 44c2044

Please sign in to comment.