diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-07-15 12:02:40 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-07-15 12:02:40 +0100 |
commit | c746b80e91bbab8c40a0c8cc5607a221b2bed09f (patch) | |
tree | 13eff326866edcad8c843f67b352a78502401aa1 | |
parent | e2d85366ef5b6f02e12e0ce353a0ccaa22ae8bbc (diff) | |
download | sos-c746b80e91bbab8c40a0c8cc5607a221b2bed09f.tar.gz |
[monit] fix add_copy_spec() arguments
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/monit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/monit.py b/sos/plugins/monit.py index 825f7707..9b7d30f7 100644 --- a/sos/plugins/monit.py +++ b/sos/plugins/monit.py @@ -27,6 +27,7 @@ class Monit(Plugin, RedHatPlugin): plugin_name = 'monit' # Define configuration files + # FIXME: direct globs will fail in container environments. monit_conf = glob("/etc/monit.d/*") monit_conf.append("/etc/monit.conf") monit_conf.append("/etc/monitrc") @@ -38,7 +39,7 @@ class Monit(Plugin, RedHatPlugin): def setup(self): self.add_cmd_output("monit status") - self.add_copy_spec([self.monit_log, self.monit_conf]) + self.add_copy_spec(self.monit_log + self.monit_conf) def postproc(self): # Post process the files included to scrub any |