diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2021-07-01 10:50:54 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-07-12 09:51:35 -0400 |
commit | 00d12ad3cf24dcc6c73e9bcf63db1d3f17e58bb1 (patch) | |
tree | 19b5b13e4196445d8f253cce9cb69a8577d3cacf | |
parent | c7d3644c0c64e9e5439806250592a55c8e2de26f (diff) | |
download | sos-00d12ad3cf24dcc6c73e9bcf63db1d3f17e58bb1.tar.gz |
[sosnode] Properly format skip-commands and skip-files on nodes
Fixes an issue where options provided for `skip-commands` and
`skip-files` were not properly formatted, thus causing an exception
during the finalization of the node's sos command.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/collector/sosnode.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sos/collector/sosnode.py b/sos/collector/sosnode.py index 6597d236..426edcba 100644 --- a/sos/collector/sosnode.py +++ b/sos/collector/sosnode.py @@ -734,11 +734,12 @@ class SosNode(): if self.check_sos_version('4.1'): if self.opts.skip_commands: sos_opts.append( - '--skip-commands=%s' % (quote(self.opts.skip_commands)) + '--skip-commands=%s' % ( + quote(','.join(self.opts.skip_commands))) ) if self.opts.skip_files: sos_opts.append( - '--skip-files=%s' % (quote(self.opts.skip_files)) + '--skip-files=%s' % (quote(','.join(self.opts.skip_files))) ) if self.check_sos_version('4.2'): |