FIX: named_enable_dnssec should verify if DNS is installed

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Martin Basti 2014-07-23 14:40:39 +02:00 committed by Petr Viktorin
parent 00309f8e42
commit 42d035f64c

View File

@ -598,6 +598,11 @@ def named_enable_dnssec():
"""
Enable dnssec in named.conf
"""
if not bindinstance.named_conf_exists():
# DNS service may not be configured
root_logger.info('DNS is not configured')
return False
if not sysupgrade.get_upgrade_state('named.conf', 'dnssec_enabled'):
root_logger.info('[Enabling "dnssec-enable" configuration in DNS]')
try: