From 5c0d31ebca2e2b352d469e2b3aff1d7ae2e7b328 Mon Sep 17 00:00:00 2001 From: Daria Bukharina Date: Mon, 14 Dec 2020 19:22:10 +0300 Subject: [policy] Add /sbin to PATH for SuSE policy. These changes fix iscsi plugin for SuSE distributions because `iscsiadm` util is placed in /sbin. Resolves: #2344 Closes: #2340 Signed-off-by: Daria Bukharina d.bukharina@yadro.com Signed-off-by: Jake Hunsaker --- sos/policies/suse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/policies/suse.py b/sos/policies/suse.py index 807cd8f4..2931f27c 100644 --- a/sos/policies/suse.py +++ b/sos/policies/suse.py @@ -39,7 +39,7 @@ class SuSEPolicy(LinuxPolicy): print("Could not obtain installed package list", file=sys.stderr) sys.exit(1) - self.PATH = "/usr/sbin:/usr/bin:/root/bin" + self.PATH = "/usr/sbin:/usr/bin:/root/bin:/sbin" self.PATH += os.pathsep + "/usr/local/bin" self.PATH += os.pathsep + "/usr/local/sbin" self.set_exec_path() -- cgit