aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-07-29 11:34:06 +0200
committerBryn M. Reeves <bmr@redhat.com>2019-07-30 12:28:51 +0100
commit8eff8f82604cb83a4c43f4a3ba0308940863c1b5 (patch)
treea4ab3fcf513b35ce2d9aacbae9e5b83a8663a410
parent8ad1f5977adfa11880aae4144d554ad1cc99ad63 (diff)
downloadsos-8eff8f82604cb83a4c43f4a3ba0308940863c1b5.tar.gz
[nvme] collect config file everytime
Collect /etc/nvme/discovery.conf every time, outside any for-loop block. Resolves: #1740 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/nvme.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/nvme.py b/sos/plugins/nvme.py
index 6e2cda73..bd9d2df0 100644
--- a/sos/plugins/nvme.py
+++ b/sos/plugins/nvme.py
@@ -21,6 +21,7 @@ class Nvme(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
return [dev for dev in sys_block if dev.startswith('nvme')]
def setup(self):
+ self.add_copy_spec("/etc/nvme/discovery.conf")
self.add_cmd_output([
"nvme list",
"nvme list-subsys",
@@ -39,6 +40,5 @@ class Nvme(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"nvme show-regs /dev/%s" % dev,
"nvme get-ns-id /dev/%s" % dev
])
- self.add_copy_spec("/etc/nvme/discovery.conf")
# vim: set et ts=4 sw=4 :