diff options
author | Cristian Ciupitu <cristian.ciupitu@yahoo.com> | 2009-11-02 16:34:37 +0200 |
---|---|---|
committer | Devan Goodwin <dgoodwin@rm-rf.ca> | 2009-11-02 22:50:26 -0400 |
commit | d3d16b0d0d8cd8b4c32c851f100c295e3e87fef9 (patch) | |
tree | 7c1c76c162dc8cffde85ebdb70905526187c1547 | |
parent | 1b3c5584d37dc75d553b0119c52c1df41aa7ea36 (diff) | |
download | cobbler-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.py | 5 |
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): |