Blame SOURCES/sos-bz1665929-nvme-config.patch

5baea9
From 8eff8f82604cb83a4c43f4a3ba0308940863c1b5 Mon Sep 17 00:00:00 2001
5baea9
From: Pavel Moravec <pmoravec@redhat.com>
5baea9
Date: Mon, 29 Jul 2019 11:34:06 +0200
5baea9
Subject: [PATCH] [nvme] collect config file everytime
5baea9
5baea9
Collect /etc/nvme/discovery.conf every time, outside any for-loop block.
5baea9
5baea9
Resolves: #1740
5baea9
5baea9
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
5baea9
---
5baea9
 sos/plugins/nvme.py | 2 +-
5baea9
 1 file changed, 1 insertion(+), 1 deletion(-)
5baea9
5baea9
diff --git a/sos/plugins/nvme.py b/sos/plugins/nvme.py
5baea9
index 6e2cda73..bd9d2df0 100644
5baea9
--- a/sos/plugins/nvme.py
5baea9
+++ b/sos/plugins/nvme.py
5baea9
@@ -21,6 +21,7 @@ class Nvme(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
5baea9
         return [dev for dev in sys_block if dev.startswith('nvme')]
5baea9
 
5baea9
     def setup(self):
5baea9
+        self.add_copy_spec("/etc/nvme/discovery.conf")
5baea9
         self.add_cmd_output([
5baea9
             "nvme list",
5baea9
             "nvme list-subsys",
5baea9
@@ -39,6 +40,5 @@ class Nvme(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
5baea9
                 "nvme show-regs /dev/%s" % dev,
5baea9
                 "nvme get-ns-id /dev/%s" % dev
5baea9
             ])
5baea9
-            self.add_copy_spec("/etc/nvme/discovery.conf")
5baea9
 
5baea9
 # vim: set et ts=4 sw=4 :
5baea9
-- 
5baea9
2.21.0
5baea9