diff options
author | Eric Desrochers <eric.desrochers@canonical.com> | 2019-11-11 16:18:22 -0500 |
---|---|---|
committer | Bryan Quigley <bryan.quigley@canonical.com> | 2019-11-13 09:35:13 -0800 |
commit | cd404fe9203065cbfe462827159b1a8d925d67f4 (patch) | |
tree | ed41c31b9ee4f60deaf6e638119b6b831a52c4d3 | |
parent | 80f9bd092012fc5522bf811e5fa9df9399b0b23e (diff) | |
download | sos-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.py | 2 |
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) |