diff options
author | Daria Bukharina <d.bukharina@yadro.com> | 2020-12-14 19:22:10 +0300 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-12-15 12:55:53 -0500 |
commit | 5c0d31ebca2e2b352d469e2b3aff1d7ae2e7b328 (patch) | |
tree | 3c8e563aaf3cb9aae7333aebef88ea19d39e0136 | |
parent | 1216f5a3247b6d23aafd2f2df178fa7aa8224743 (diff) | |
download | sos-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.py | 2 |
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() |