jcholast's pull request #87: "dns: re-introduce --raw in dnsrecord-del" was 
opened

PR body:
"""
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
"""

See the full pull-request at https://github.com/freeipa/freeipa/pull/87
... or pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/87/head:pr87
git checkout pr87
From fdd0885a22ca015f30288cbf62fd1c7f2ceeeb3d Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
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
---
 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 f3b2938..1e02ac2 100644
--- a/API.txt
+++ b/API.txt
@@ -1340,7 +1340,7 @@ output: Entry('result')
 output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>])
 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 5f138f5..e5f8d96 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 5510a66..0c880f8 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):
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to