From bc6f9accd9250114b4f0c457fa5badd7f794af8e Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Fri, 1 Apr 2011 17:09:07 +0200 Subject: Need force option in DNS zone adder dialog When adding a new DNS zone in the WebUI, IPA server will verify whether the nameserver is in DNS. Sometimes it is necessary to skip the verification. This patch adds a --force option already available in CLI which can skip this the verification. https://fedorahosted.org/freeipa/ticket/1105 --- ipalib/plugins/dns.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index ef35a3ea4..3f8753d11 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -346,6 +346,7 @@ class dnszone_add(LDAPCreate): """ takes_options = LDAPCreate.takes_options + ( Flag('force', + label=_('Force'), doc=_('Force DNS zone creation even if nameserver not in DNS.'), ), Str('ip_address?', _validate_ipaddr, @@ -639,6 +640,7 @@ class dnsrecord_add(LDAPCreate, dnsrecord_cmd_w_record_options): no_option_msg = 'No options to add a specific record provided.' takes_options = LDAPCreate.takes_options + ( Flag('force', + label=_('Force'), flags=['no_option', 'no_output'], doc=_('force NS record creation even if its hostname is not in DNS'), ), -- cgit