76b7d5
From e5311fbfd5ad83671c61473d7acf4ddaf157e994 Mon Sep 17 00:00:00 2001
76b7d5
From: Jan Cholasta <jcholast@redhat.com>
76b7d5
Date: Thu, 23 Feb 2017 13:04:19 +0000
76b7d5
Subject: [PATCH] compat: fix `Any` params in `batch` and `dnsrecord`
76b7d5
76b7d5
The `methods` argument of `batch` and `dnsrecords` attribute of `dnsrecord`
76b7d5
were incorrectly defined as `Str` instead of `Any`.
76b7d5
76b7d5
https://fedorahosted.org/freeipa/ticket/6647
76b7d5
76b7d5
Reviewed-By: Martin Basti <mbasti@redhat.com>
76b7d5
---
76b7d5
 ipaclient/remote_plugins/2_114/batch.py | 2 +-
76b7d5
 ipaclient/remote_plugins/2_114/dns.py   | 2 +-
76b7d5
 ipaclient/remote_plugins/2_156/batch.py | 2 +-
76b7d5
 ipaclient/remote_plugins/2_156/dns.py   | 2 +-
76b7d5
 ipaclient/remote_plugins/2_164/batch.py | 2 +-
76b7d5
 ipaclient/remote_plugins/2_164/dns.py   | 2 +-
76b7d5
 ipaclient/remote_plugins/2_49/batch.py  | 2 +-
76b7d5
 ipaclient/remote_plugins/2_49/dns.py    | 2 +-
76b7d5
 8 files changed, 8 insertions(+), 8 deletions(-)
76b7d5
76b7d5
diff --git a/ipaclient/remote_plugins/2_114/batch.py b/ipaclient/remote_plugins/2_114/batch.py
76b7d5
index 4a613b677bedda447a07d3d0bdc10d38762ccc61..2709e5907f18f254f7e605beff9a7f3c9a2ae18d 100644
76b7d5
--- a/ipaclient/remote_plugins/2_114/batch.py
76b7d5
+++ b/ipaclient/remote_plugins/2_114/batch.py
76b7d5
@@ -50,7 +50,7 @@ class batch(Command):
76b7d5
     NO_CLI = True
76b7d5
 
76b7d5
     takes_args = (
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'methods',
76b7d5
             required=False,
76b7d5
             multivalue=True,
76b7d5
diff --git a/ipaclient/remote_plugins/2_114/dns.py b/ipaclient/remote_plugins/2_114/dns.py
76b7d5
index 5d91dbcb37fcb42cb67ab76a1871fd3df6217cf8..acb8a658204fb18b088766f947f82839f053cbf3 100644
76b7d5
--- a/ipaclient/remote_plugins/2_114/dns.py
76b7d5
+++ b/ipaclient/remote_plugins/2_114/dns.py
76b7d5
@@ -326,7 +326,7 @@ class dnsrecord(Object):
76b7d5
             'dnsclass',
76b7d5
             required=False,
76b7d5
         ),
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'dnsrecords',
76b7d5
             required=False,
76b7d5
             label=_(u'Records'),
76b7d5
diff --git a/ipaclient/remote_plugins/2_156/batch.py b/ipaclient/remote_plugins/2_156/batch.py
76b7d5
index 4a613b677bedda447a07d3d0bdc10d38762ccc61..2709e5907f18f254f7e605beff9a7f3c9a2ae18d 100644
76b7d5
--- a/ipaclient/remote_plugins/2_156/batch.py
76b7d5
+++ b/ipaclient/remote_plugins/2_156/batch.py
76b7d5
@@ -50,7 +50,7 @@ class batch(Command):
76b7d5
     NO_CLI = True
76b7d5
 
76b7d5
     takes_args = (
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'methods',
76b7d5
             required=False,
76b7d5
             multivalue=True,
76b7d5
diff --git a/ipaclient/remote_plugins/2_156/dns.py b/ipaclient/remote_plugins/2_156/dns.py
76b7d5
index 39a0b269533481bcb5b193ad8a463a48146e5275..bbfaa9fd0fb2b582430a5c85761af206d53884f9 100644
76b7d5
--- a/ipaclient/remote_plugins/2_156/dns.py
76b7d5
+++ b/ipaclient/remote_plugins/2_156/dns.py
76b7d5
@@ -326,7 +326,7 @@ class dnsrecord(Object):
76b7d5
             'dnsclass',
76b7d5
             required=False,
76b7d5
         ),
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'dnsrecords',
76b7d5
             required=False,
76b7d5
             label=_(u'Records'),
76b7d5
diff --git a/ipaclient/remote_plugins/2_164/batch.py b/ipaclient/remote_plugins/2_164/batch.py
76b7d5
index 4a613b677bedda447a07d3d0bdc10d38762ccc61..2709e5907f18f254f7e605beff9a7f3c9a2ae18d 100644
76b7d5
--- a/ipaclient/remote_plugins/2_164/batch.py
76b7d5
+++ b/ipaclient/remote_plugins/2_164/batch.py
76b7d5
@@ -50,7 +50,7 @@ class batch(Command):
76b7d5
     NO_CLI = True
76b7d5
 
76b7d5
     takes_args = (
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'methods',
76b7d5
             required=False,
76b7d5
             multivalue=True,
76b7d5
diff --git a/ipaclient/remote_plugins/2_164/dns.py b/ipaclient/remote_plugins/2_164/dns.py
76b7d5
index b07a94f1942e3913d6d169b61d84a3b3db268671..244be87f32db6664e5264038b97bc53b704ff166 100644
76b7d5
--- a/ipaclient/remote_plugins/2_164/dns.py
76b7d5
+++ b/ipaclient/remote_plugins/2_164/dns.py
76b7d5
@@ -326,7 +326,7 @@ class dnsrecord(Object):
76b7d5
             'dnsclass',
76b7d5
             required=False,
76b7d5
         ),
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'dnsrecords',
76b7d5
             required=False,
76b7d5
             label=_(u'Records'),
76b7d5
diff --git a/ipaclient/remote_plugins/2_49/batch.py b/ipaclient/remote_plugins/2_49/batch.py
76b7d5
index a1f351d332d56c959bf8632cb218de8540f45005..67e5978e634b71735c1940086a80943d967ff1f6 100644
76b7d5
--- a/ipaclient/remote_plugins/2_49/batch.py
76b7d5
+++ b/ipaclient/remote_plugins/2_49/batch.py
76b7d5
@@ -50,7 +50,7 @@ class batch(Command):
76b7d5
     NO_CLI = True
76b7d5
 
76b7d5
     takes_args = (
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'methods',
76b7d5
             required=False,
76b7d5
             multivalue=True,
76b7d5
diff --git a/ipaclient/remote_plugins/2_49/dns.py b/ipaclient/remote_plugins/2_49/dns.py
76b7d5
index 07cef75c2a97c07a77a9ffa3997ec6fa431e3151..4b543a2c2539f7b67467b0a38ab8013a1ebe0840 100644
76b7d5
--- a/ipaclient/remote_plugins/2_49/dns.py
76b7d5
+++ b/ipaclient/remote_plugins/2_49/dns.py
76b7d5
@@ -256,7 +256,7 @@ class dnsrecord(Object):
76b7d5
             label=_(u'Class'),
76b7d5
             doc=_(u'DNS class'),
76b7d5
         ),
76b7d5
-        parameters.Str(
76b7d5
+        parameters.Any(
76b7d5
             'dnsrecords',
76b7d5
             required=False,
76b7d5
             label=_(u'Records'),
76b7d5
-- 
76b7d5
2.9.3
76b7d5