From 19060db1b8fa9d1d3e8f3ac3fcd1f387e9a39c94 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 23 Feb 2017 13:04:19 +0000 Subject: [PATCH] compat: fix `Any` params in `batch` and `dnsrecord` The `methods` argument of `batch` and `dnsrecords` attribute of `dnsrecord` were incorrectly defined as `Str` instead of `Any`. https://fedorahosted.org/freeipa/ticket/6647 Reviewed-By: Martin Basti --- ipaclient/remote_plugins/2_114/batch.py | 2 +- ipaclient/remote_plugins/2_114/dns.py | 2 +- ipaclient/remote_plugins/2_156/batch.py | 2 +- ipaclient/remote_plugins/2_156/dns.py | 2 +- ipaclient/remote_plugins/2_164/batch.py | 2 +- ipaclient/remote_plugins/2_164/dns.py | 2 +- ipaclient/remote_plugins/2_49/batch.py | 2 +- ipaclient/remote_plugins/2_49/dns.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ipaclient/remote_plugins/2_114/batch.py b/ipaclient/remote_plugins/2_114/batch.py index 4a613b677..2709e5907 100644 --- a/ipaclient/remote_plugins/2_114/batch.py +++ b/ipaclient/remote_plugins/2_114/batch.py @@ -50,7 +50,7 @@ class batch(Command): NO_CLI = True takes_args = ( - parameters.Str( + parameters.Any( 'methods', required=False, multivalue=True, diff --git a/ipaclient/remote_plugins/2_114/dns.py b/ipaclient/remote_plugins/2_114/dns.py index 5d91dbcb3..acb8a6582 100644 --- a/ipaclient/remote_plugins/2_114/dns.py +++ b/ipaclient/remote_plugins/2_114/dns.py @@ -326,7 +326,7 @@ class dnsrecord(Object): 'dnsclass', required=False, ), - parameters.Str( + parameters.Any( 'dnsrecords', required=False, label=_(u'Records'), diff --git a/ipaclient/remote_plugins/2_156/batch.py b/ipaclient/remote_plugins/2_156/batch.py index 4a613b677..2709e5907 100644 --- a/ipaclient/remote_plugins/2_156/batch.py +++ b/ipaclient/remote_plugins/2_156/batch.py @@ -50,7 +50,7 @@ class batch(Command): NO_CLI = True takes_args = ( - parameters.Str( + parameters.Any( 'methods', required=False, multivalue=True, diff --git a/ipaclient/remote_plugins/2_156/dns.py b/ipaclient/remote_plugins/2_156/dns.py index 39a0b2695..bbfaa9fd0 100644 --- a/ipaclient/remote_plugins/2_156/dns.py +++ b/ipaclient/remote_plugins/2_156/dns.py @@ -326,7 +326,7 @@ class dnsrecord(Object): 'dnsclass', required=False, ), - parameters.Str( + parameters.Any( 'dnsrecords', required=False, label=_(u'Records'), diff --git a/ipaclient/remote_plugins/2_164/batch.py b/ipaclient/remote_plugins/2_164/batch.py index 4a613b677..2709e5907 100644 --- a/ipaclient/remote_plugins/2_164/batch.py +++ b/ipaclient/remote_plugins/2_164/batch.py @@ -50,7 +50,7 @@ class batch(Command): NO_CLI = True takes_args = ( - parameters.Str( + parameters.Any( 'methods', required=False, multivalue=True, diff --git a/ipaclient/remote_plugins/2_164/dns.py b/ipaclient/remote_plugins/2_164/dns.py index b07a94f19..244be87f3 100644 --- a/ipaclient/remote_plugins/2_164/dns.py +++ b/ipaclient/remote_plugins/2_164/dns.py @@ -326,7 +326,7 @@ class dnsrecord(Object): 'dnsclass', required=False, ), - parameters.Str( + parameters.Any( 'dnsrecords', required=False, label=_(u'Records'), diff --git a/ipaclient/remote_plugins/2_49/batch.py b/ipaclient/remote_plugins/2_49/batch.py index a1f351d33..67e5978e6 100644 --- a/ipaclient/remote_plugins/2_49/batch.py +++ b/ipaclient/remote_plugins/2_49/batch.py @@ -50,7 +50,7 @@ class batch(Command): NO_CLI = True takes_args = ( - parameters.Str( + parameters.Any( 'methods', required=False, multivalue=True, diff --git a/ipaclient/remote_plugins/2_49/dns.py b/ipaclient/remote_plugins/2_49/dns.py index 07cef75c2..4b543a2c2 100644 --- a/ipaclient/remote_plugins/2_49/dns.py +++ b/ipaclient/remote_plugins/2_49/dns.py @@ -256,7 +256,7 @@ class dnsrecord(Object): label=_(u'Class'), doc=_(u'DNS class'), ), - parameters.Str( + parameters.Any( 'dnsrecords', required=False, label=_(u'Records'),