summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/dns.py
diff options
context:
space:
mode:
authorAna Krivokapic <akrivoka@redhat.com>2013-04-08 11:04:17 -0400
committerMartin Kosek <mkosek@redhat.com>2013-04-11 15:57:45 +0200
commitff52c25ae299abba8bed653fe324951979a41293 (patch)
treec205ce7f2e425d3419a7929a2b6beac895781825 /ipalib/plugins/dns.py
parentb25080bbca1d30c80ab8db4b8cca42cd85146a82 (diff)
downloadfreeipa-ff52c25ae299abba8bed653fe324951979a41293.tar.gz
freeipa-ff52c25ae299abba8bed653fe324951979a41293.tar.xz
freeipa-ff52c25ae299abba8bed653fe324951979a41293.zip
Fix output for some CLI commands
Fix output of dnsrecord_del: it now uses output.standard_delete and excludes --all and --raw flags. Fix output of sudorule_{add,remove}_option: they now use output.standard_entry and include --all and --raw flags. https://fedorahosted.org/freeipa/ticket/3503
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r--ipalib/plugins/dns.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 3e6ed835..f40360f8 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -2679,6 +2679,8 @@ api.register(dnsrecord_delentry)
class dnsrecord_del(LDAPUpdate):
__doc__ = _('Delete DNS resource record.')
+ has_output = output.standard_delete
+
no_option_msg = _('Neither --del-all nor options to delete a specific record provided.\n'\
"Command help may be consulted for all supported record types.")