diff options
author | Eric Desrochers <eric.desrochers@canonical.com> | 2020-01-19 16:32:48 -0500 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-01-27 12:57:03 -0500 |
commit | 5659c5f8b9b26543543e2a5cc1eb83dae0a37698 (patch) | |
tree | d8522edbdef79c85ed9c41702bfb544918f9ba69 | |
parent | e9c9ad1e626eae2952dc6a619620d34234d78bdc (diff) | |
download | sos-5659c5f8b9b26543543e2a5cc1eb83dae0a37698.tar.gz |
[snappy] Check for presence of the snapd pkg instead of its binary
To perform snap command, 'snapd' debian package must be installed:
https://snapcraft.io/docs/installing-snap-on-ubuntu
https://launchpad.net/ubuntu/+source/snapd
$ apt-file search /usr/bin/snap
snapd: /usr/bin/snap
$ dpkg -S /usr/bin/snap
snapd: /usr/bin/snap
Resolves: #1922
Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/plugins/snappy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/snappy.py b/sos/plugins/snappy.py index 20d32de5..06d72654 100644 --- a/sos/plugins/snappy.py +++ b/sos/plugins/snappy.py @@ -16,7 +16,7 @@ class Snappy(Plugin, UbuntuPlugin, DebianPlugin, RedHatPlugin): plugin_name = 'snappy' profiles = ('system', 'sysmgmt', 'packagemanager') - files = ('/usr/bin/snap') + packages = ('snapd',) def setup(self): self.add_cmd_output([ |