Hello, DNS installer: accept --auto-forwarders option in unattended mode
https://fedorahosted.org/freeipa/ticket/5869 -- Petr^2 Spacek
From f1ad3a19f250d88502f47e3b5541388e14ab5f08 Mon Sep 17 00:00:00 2001 From: Petr Spacek <pspa...@redhat.com> 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 --- 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 d8b2eb0fe2842208c64a3a8bb4e4fc295681fb9b..4138622356e49a02750da3084667604ae7426769 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) -- 2.5.5
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code