summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Ciupitu <cristian.ciupitu@yahoo.com>2009-11-02 16:34:37 +0200
committerDevan Goodwin <dgoodwin@rm-rf.ca>2009-11-02 22:50:26 -0400
commitd3d16b0d0d8cd8b4c32c851f100c295e3e87fef9 (patch)
tree7c1c76c162dc8cffde85ebdb70905526187c1547
parent1b3c5584d37dc75d553b0119c52c1df41aa7ea36 (diff)
downloadcobbler-d3d16b0d0d8cd8b4c32c851f100c295e3e87fef9.tar.gz
cobbler-d3d16b0d0d8cd8b4c32c851f100c295e3e87fef9.tar.xz
cobbler-d3d16b0d0d8cd8b4c32c851f100c295e3e87fef9.zip
cobbler check: fix BIND detection (#523)
- use "named -v" instead of "named --help" because -v is a supported option, unlike --help
-rw-r--r--cobbler/action_check.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 23f4ffd5..af7942c2 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -279,8 +279,9 @@ class BootCheck:
"""
Check if bind is installed.
"""
- rc = utils.subprocess_get(self.logger,"named --help")
- if rc.find("unknown option") == -1:
+ rc = utils.subprocess_get(self.logger,"named -v")
+ # it should return something like "BIND 9.6.1-P1-RedHat-9.6.1-6.P1.fc11"
+ if rc.find("BIND") == -1:
status.append("named is not installed and/or in path")
def check_bootloaders(self,status):