diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/sos/plugins/named.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/sos/plugins/named.py b/src/lib/sos/plugins/named.py index 69695de6..1dddb8b7 100644 --- a/src/lib/sos/plugins/named.py +++ b/src/lib/sos/plugins/named.py @@ -20,9 +20,10 @@ class named(sos.plugintools.PluginBase): """named related information """ def checkenabled(self): - if self.cInfo["policy"].pkgByName("bind") or exists("/etc/named.conf") or exists("/etc/sysconfig/named"): - return True - return False + self.files = [ "/etc/named.conf", + "/etc/sysconfig/named" ] + self.packages = [ "bind" ] + return sos.plugintools.PluginBase.checkenabled(self) def getDnsDir(self, configFile): """ grab directory path from named{conf,boot} |