mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
changed spec to options as per irc meeting
This commit is contained in:
@@ -1743,10 +1743,10 @@ class AnsibleModule(object):
|
|||||||
e = get_exception()
|
e = get_exception()
|
||||||
self.fail_json(msg="argument %s is of type %s and we were unable to convert to %s: %s" % (k, type(value), wanted, e))
|
self.fail_json(msg="argument %s is of type %s and we were unable to convert to %s: %s" % (k, type(value), wanted, e))
|
||||||
|
|
||||||
# deal with subspecs
|
# deal with sub options to create sub spec
|
||||||
spec = None
|
spec = None
|
||||||
if wanted == 'dict' or (wanted == 'list' and v.get('elements', '') == 'dict'):
|
if wanted == 'dict' or (wanted == 'list' and v.get('elements', '') == 'dict'):
|
||||||
spec = v.get('spec', None)
|
spec = v.get('options', None)
|
||||||
if spec:
|
if spec:
|
||||||
self._check_required_arguments(spec, param[k])
|
self._check_required_arguments(spec, param[k])
|
||||||
self._check_argument_types(spec, param[k])
|
self._check_argument_types(spec, param[k])
|
||||||
|
|||||||
Reference in New Issue
Block a user