mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix required_if (needed to pass list to _count_terms)
This commit is contained in:
parent
27fcf1a4b5
commit
dd058a1dc2
1 changed files with 1 additions and 2 deletions
|
@ -978,7 +978,7 @@ class AnsibleModule(object):
|
||||||
missing = []
|
missing = []
|
||||||
if key in self.params and self.params[key] == val:
|
if key in self.params and self.params[key] == val:
|
||||||
for check in requirements:
|
for check in requirements:
|
||||||
count = self._count_terms(check)
|
count = self._count_terms((check,))
|
||||||
if count == 0:
|
if count == 0:
|
||||||
missing.append(check)
|
missing.append(check)
|
||||||
if len(missing) > 0:
|
if len(missing) > 0:
|
||||||
|
@ -1111,7 +1111,6 @@ class AnsibleModule(object):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
value = self.params[k]
|
value = self.params[k]
|
||||||
is_invalid = False
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
type_checker = self._CHECK_ARGUMENT_TYPES_DISPATCHER[wanted]
|
type_checker = self._CHECK_ARGUMENT_TYPES_DISPATCHER[wanted]
|
||||||
|
|
Loading…
Reference in a new issue