diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-01-07 14:08:36 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-01-16 15:44:22 +0000 |
commit | 6b60a9fcecc618be8751bbea65f2d0949a8d7167 (patch) | |
tree | 1cf2e3428f3d8447e0a4c561d4f76fc95395ed38 | |
parent | 45d4ad06c1a917b189b041471e2a54366ec50d76 (diff) | |
download | sos-6b60a9fcecc618be8751bbea65f2d0949a8d7167.tar.gz |
[nis] enable plugin also when package or config file present
Enable nis plugin also when ypserv package is installed or
if /etc/ypserv.conf exists.
Resolves: #1180
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/nis.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/nis.py b/sos/plugins/nis.py index 7468f8dd..678d0f28 100644 --- a/sos/plugins/nis.py +++ b/sos/plugins/nis.py @@ -22,7 +22,9 @@ class Nis(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): plugin_name = 'nis' profiles = ('identity', 'services') - files = ('/var/yp',) + files = ('/var/yp', '/etc/ypserv.conf') + + packages = ('ypserv') def setup(self): self.add_copy_spec([ |