diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-06-09 22:54:17 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-06-09 22:54:17 +0000 |
commit | 73ab8315daa981698ecf3b2a80fba9db5aa62847 (patch) | |
tree | 5908d0cc6b636756faf8fdd5e216d44e43ac0a7c /src | |
parent | 706b0cb007a021ef8458742863507c508890b031 (diff) | |
download | sos-73ab8315daa981698ecf3b2a80fba9db5aa62847.tar.gz |
update named on checkenabled
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@580 ef72aa8b-4018-0410-8976-d6e080ef94d8
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} |