diff options
author | Petr Spacek <pspacek@redhat.com> | 2016-05-03 14:12:44 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-11 09:49:23 +0200 |
commit | e345b53f35b920c1d8ffd9fed2ec636d3bde11df (patch) | |
tree | 0bff5e26a6ac45f9b1b1201a74d4fe43db737745 | |
parent | 7098d98100d61f9ed2efc6d4db635c24f9786040 (diff) | |
download | freeipa-e345b53f35b920c1d8ffd9fed2ec636d3bde11df.tar.gz freeipa-e345b53f35b920c1d8ffd9fed2ec636d3bde11df.tar.xz freeipa-e345b53f35b920c1d8ffd9fed2ec636d3bde11df.zip |
DNS installer: accept --auto-forwarders option in unattended mode
https://fedorahosted.org/freeipa/ticket/5869
Reviewed-By: Martin Basti <mbasti@redhat.com>
-rwxr-xr-x | install/tools/ipa-dns-install | 7 |
1 files 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) |