diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-04-01 17:09:07 +0200 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people01.fedoraproject.org> | 2011-04-21 19:03:38 +0000 |
commit | bc6f9accd9250114b4f0c457fa5badd7f794af8e (patch) | |
tree | f18dd93a8f0fd53ef86c5eefde428a96c796c462 /ipalib/plugins | |
parent | d9c17612341af82405873dde120b177dbc0abd83 (diff) | |
download | freeipa-bc6f9accd9250114b4f0c457fa5badd7f794af8e.tar.gz freeipa-bc6f9accd9250114b4f0c457fa5badd7f794af8e.tar.xz freeipa-bc6f9accd9250114b4f0c457fa5badd7f794af8e.zip |
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
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/dns.py | 2 |
1 files changed, 2 insertions, 0 deletions
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'), ), |