aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Desrochers <eric.desrochers@canonical.com>2019-11-11 16:18:22 -0500
committerBryan Quigley <bryan.quigley@canonical.com>2019-11-13 09:35:13 -0800
commitcd404fe9203065cbfe462827159b1a8d925d67f4 (patch)
treeed41c31b9ee4f60deaf6e638119b6b831a52c4d3
parent80f9bd092012fc5522bf811e5fa9df9399b0b23e (diff)
downloadsos-cd404fe9203065cbfe462827159b1a8d925d67f4.tar.gz
[policies] Add PATH for Ubuntu
Add PATH for Ubuntu policies and integrate /snap/bin, preventing to hardcode the patch inside the plugins if installed as a snap. Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
-rw-r--r--sos/policies/ubuntu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/policies/ubuntu.py b/sos/policies/ubuntu.py
index 0bf6fb62..ebf40ea7 100644
--- a/sos/policies/ubuntu.py
+++ b/sos/policies/ubuntu.py
@@ -8,6 +8,8 @@ class UbuntuPolicy(DebianPolicy):
distro = "Ubuntu"
vendor = "Canonical"
vendor_url = "https://www.ubuntu.com/"
+ PATH = "/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" \
+ + ":/usr/local/sbin:/usr/local/bin:/snap/bin"
def __init__(self, sysroot=None):
super(UbuntuPolicy, self).__init__(sysroot=sysroot)