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 <mbasti@redhat.com>
This commit is contained in:
Jan Cholasta 2017-02-23 13:04:19 +00:00
parent a572e61cb5
commit e3b49abfe7
8 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class batch(Command):
NO_CLI = True
takes_args = (
parameters.Str(
parameters.Any(
'methods',
required=False,
multivalue=True,

View File

@ -326,7 +326,7 @@ class dnsrecord(Object):
'dnsclass',
required=False,
),
parameters.Str(
parameters.Any(
'dnsrecords',
required=False,
label=_(u'Records'),

View File

@ -50,7 +50,7 @@ class batch(Command):
NO_CLI = True
takes_args = (
parameters.Str(
parameters.Any(
'methods',
required=False,
multivalue=True,

View File

@ -326,7 +326,7 @@ class dnsrecord(Object):
'dnsclass',
required=False,
),
parameters.Str(
parameters.Any(
'dnsrecords',
required=False,
label=_(u'Records'),

View File

@ -50,7 +50,7 @@ class batch(Command):
NO_CLI = True
takes_args = (
parameters.Str(
parameters.Any(
'methods',
required=False,
multivalue=True,

View File

@ -326,7 +326,7 @@ class dnsrecord(Object):
'dnsclass',
required=False,
),
parameters.Str(
parameters.Any(
'dnsrecords',
required=False,
label=_(u'Records'),

View File

@ -50,7 +50,7 @@ class batch(Command):
NO_CLI = True
takes_args = (
parameters.Str(
parameters.Any(
'methods',
required=False,
multivalue=True,

View File

@ -256,7 +256,7 @@ class dnsrecord(Object):
label=_(u'Class'),
doc=_(u'DNS class'),
),
parameters.Str(
parameters.Any(
'dnsrecords',
required=False,
label=_(u'Records'),