diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-10-01 11:41:39 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-01 14:59:41 +0200 |
commit | 6067824be494745926204a7ba3709c3c0f054326 (patch) | |
tree | 5c18b341e5c9925d316043dc35f34287b9f07976 /ipaserver/install/server/install.py | |
parent | 03d696f224642c1c4c4f1a434fecefd1c6270e37 (diff) | |
download | freeipa-6067824be494745926204a7ba3709c3c0f054326.tar.gz freeipa-6067824be494745926204a7ba3709c3c0f054326.tar.xz freeipa-6067824be494745926204a7ba3709c3c0f054326.zip |
install: fix ipa-server-install fail on missing --forwarder
https://fedorahosted.org/freeipa/ticket/4517
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/server/install.py')
-rw-r--r-- | ipaserver/install/server/install.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py index 4fe1ed9f2..32eef1cd7 100644 --- a/ipaserver/install/server/install.py +++ b/ipaserver/install/server/install.py @@ -1269,6 +1269,12 @@ class Server(BaseServer): raise RuntimeError( "In unattended mode you need to provide at least -r, -p " "and -a options") + if self.setup_dns: + #pylint: disable=no-member + if not self.dns.forwarders and not self.dns.no_forwarders: + raise RuntimeError( + "You must specify at least one --forwarder option or " + "--no-forwarders option") if self.idmax < self.idstart: raise RuntimeError( |