From e345b53f35b920c1d8ffd9fed2ec636d3bde11df Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Tue, 3 May 2016 14:12:44 +0200 Subject: [PATCH] DNS installer: accept --auto-forwarders option in unattended mode https://fedorahosted.org/freeipa/ticket/5869 Reviewed-By: Martin Basti --- install/tools/ipa-dns-install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install index d8b2eb0fe..413862235 100755 --- a/install/tools/ipa-dns-install +++ b/install/tools/ipa-dns-install @@ -104,8 +104,11 @@ def parse_options(): parser.error("You cannot specify a --auto-reverse option together with --no-reverse") if options.unattended: - if not options.forwarders and not options.no_forwarders: - parser.error("You must specify at least one --forwarder option or --no-forwarders option") + if (not options.forwarders + and not options.no_forwarders + and not options.auto_forwarders): + parser.error("You must specify at least one option: " + "--forwarder or --no-forwarders or --auto-forwarders") if options.kasp_db_file and not ipautil.file_exists(options.kasp_db_file): parser.error("File %s does not exist" % options.kasp_db_file)