diff options
author | nashok@redhat.com <nashok@redhat.com> | 2023-09-18 13:41:22 +0530 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2023-09-18 18:06:31 -0400 |
commit | 6652c5b06e80fdf33268efda6a26d9300ce2df5a (patch) | |
tree | ea745632d8f652fe83c6fa964e73d071a725e17a | |
parent | 765ac8f3cc8e8413278afbf2579eaac7c0419f72 (diff) | |
download | sos-6652c5b06e80fdf33268efda6a26d9300ce2df5a.tar.gz |
[virsh] Add --all for virsh pool and net
Adding --all will also get inactive pools/net. This would be helpful
when working with a pool/net which are failing to start.
Signed-off-by: Nijin Ashok <nashok@redhat.com>
-rw-r--r-- | sos/report/plugins/virsh.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/report/plugins/virsh.py b/sos/report/plugins/virsh.py index f5e9aa9d..b3b72589 100644 --- a/sos/report/plugins/virsh.py +++ b/sos/report/plugins/virsh.py @@ -50,7 +50,8 @@ class LibvirtClient(Plugin, IndependentPlugin): # get network, pool and nwfilter elements for k in ['net', 'nwfilter', 'pool']: - k_list = self.collect_cmd_output('%s %s-list' % (cmd, k), + k_list = self.collect_cmd_output('%s %s-list %s' % (cmd, k, '--all' + if k in ['net', 'pool'] else ''), foreground=True) if k_list['status'] == 0: k_lines = k_list['output'].splitlines() |