diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-21 07:47:52 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-06-21 13:03:14 +0200 |
commit | 894be1bd50905b86d87244d0ede3f266e9737b9a (patch) | |
tree | ae3c4b51e56dd76894e0d53d7559991e768bf92d /ipaserver/plugins/dns.py | |
parent | 0787af8d5a1a75e25f73cc632c4c7ebdd212ad02 (diff) | |
download | freeipa-894be1bd50905b86d87244d0ede3f266e9737b9a.tar.gz freeipa-894be1bd50905b86d87244d0ede3f266e9737b9a.tar.xz freeipa-894be1bd50905b86d87244d0ede3f266e9737b9a.zip |
dns: fix dns_update_system_records to work with thin client
https://fedorahosted.org/freeipa/ticket/2008
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/plugins/dns.py')
-rw-r--r-- | ipaserver/plugins/dns.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py index eab6afc57..5c7ce51d4 100644 --- a/ipaserver/plugins/dns.py +++ b/ipaserver/plugins/dns.py @@ -41,6 +41,7 @@ from ipalib.dns import (extra_name_format, iterate_rrparams_by_parts, part_name_format, record_name_format) +from ipalib.frontend import Method, Object from ipalib.request import context from ipalib import api, errors, output from ipalib import Command @@ -4428,11 +4429,8 @@ class dnsforwardzone_remove_permission(DNSZoneBase_remove_permission): @register() -class dns_update_system_records(Command): - __doc__ = _('Update location and IPA server DNS records') - - - has_output_params = ( +class dns_system_records(Object): + takes_params = ( Str( 'ipa_records*', label=_('IPA DNS records') @@ -4443,11 +4441,17 @@ class dns_update_system_records(Command): ) ) + +@register() +class dns_update_system_records(Method): + __doc__ = _('Update location and IPA server DNS records') + + obj_name = 'dns_system_records' + attr_name = 'update' + has_output = ( - output.Output( + output.Entry( 'result', - type=dict, - doc=_('Dictionary mapping variable name to value'), ), output.Output( 'value', bool, |