From ea7bff4a3f35d5ddca5e6f39ff88a5d7cbf60740 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 28 Mar 2017 15:55:09 -0400 Subject: [PATCH] changed spec to options as per irc meeting --- lib/ansible/module_utils/basic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 2e2d676523..af26d81ee4 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1743,10 +1743,10 @@ class AnsibleModule(object): 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)) - # deal with subspecs + # deal with sub options to create sub spec spec = None if wanted == 'dict' or (wanted == 'list' and v.get('elements', '') == 'dict'): - spec = v.get('spec', None) + spec = v.get('options', None) if spec: self._check_required_arguments(spec, param[k]) self._check_argument_types(spec, param[k])