From e5f7a612fbfdaa9ee12ef16cef550931011abe4c Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 15 Sep 2016 14:13:28 +0200 Subject: [PATCH] dns: re-introduce --raw in dnsrecord-del The flag was removed in commit ff52c25ae299abba8bed653fe324951979a41293 because it is unused. Add it back for compatibility with old clients. https://fedorahosted.org/freeipa/ticket/5644 Reviewed-By: Martin Basti --- API.txt | 3 ++- VERSION | 4 ++-- ipaserver/plugins/dns.py | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/API.txt b/API.txt index f3b2938da..1e02ac2c5 100644 --- a/API.txt +++ b/API.txt @@ -1340,7 +1340,7 @@ output: Entry('result') output: Output('summary', type=[, ]) output: PrimaryKey('value') command: dnsrecord_del/1 -args: 2,34,3 +args: 2,35,3 arg: DNSNameParam('dnszoneidnsname', cli_name='dnszone') arg: DNSNameParam('idnsname', cli_name='name') option: A6Record('a6record*', autofill=False, cli_name='a6_rec') @@ -1367,6 +1367,7 @@ option: NAPTRRecord('naptrrecord*', autofill=False, cli_name='naptr_rec') option: NSECRecord('nsecrecord*', autofill=False, cli_name='nsec_rec') option: NSRecord('nsrecord*', autofill=False, cli_name='ns_rec') option: PTRRecord('ptrrecord*', autofill=False, cli_name='ptr_rec') +option: Flag('raw', autofill=True, default=False) option: RPRecord('rprecord*', autofill=False, cli_name='rp_rec') option: RRSIGRecord('rrsigrecord*', autofill=False, cli_name='rrsig_rec') option: SIGRecord('sigrecord*', autofill=False, cli_name='sig_rec') diff --git a/VERSION b/VERSION index 5f138f589..e5f8d9613 100644 --- a/VERSION +++ b/VERSION @@ -90,5 +90,5 @@ IPA_DATA_VERSION=20100614120000 # # ######################################################## IPA_API_VERSION_MAJOR=2 -IPA_API_VERSION_MINOR=214 -# Last change: ftweedal: add ca-disable and ca-enable commands +IPA_API_VERSION_MINOR=215 +# Last change: dns: re-introduce --raw in dnsrecord-del diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py index 5510a66db..0c880f8cc 100644 --- a/ipaserver/plugins/dns.py +++ b/ipaserver/plugins/dns.py @@ -3800,6 +3800,10 @@ class dnsrecord_del(LDAPUpdate): label=_('Delete all associated records'), ), dnsrecord.structured_flag, + Flag( + 'raw', + exclude=('cli', 'webui'), + ), ) def get_options(self):