aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaria Bukharina <d.bukharina@yadro.com>2020-12-14 19:22:10 +0300
committerJake Hunsaker <jhunsake@redhat.com>2020-12-15 12:55:53 -0500
commit5c0d31ebca2e2b352d469e2b3aff1d7ae2e7b328 (patch)
tree3c8e563aaf3cb9aae7333aebef88ea19d39e0136
parent1216f5a3247b6d23aafd2f2df178fa7aa8224743 (diff)
downloadsos-5c0d31ebca2e2b352d469e2b3aff1d7ae2e7b328.tar.gz
[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 <jhunsake@redhat.com>
-rw-r--r--sos/policies/suse.py2
1 files changed, 1 insertions, 1 deletions
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()