Skip to content

Commit

Permalink
Merge pull request #24 from ganeshrn/element_fix
Browse files Browse the repository at this point in the history
Fix element key error

Reviewed-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
             https://github.com/NilashishC
  • Loading branch information
ansible-zuul[bot] committed Apr 10, 2019
2 parents ab51d36 + ddf222f commit 610f24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/resource_module/filter_plugins/to_argspec.py
Expand Up @@ -24,7 +24,7 @@ def dive(obj, required=False):
result['options'][propkey] = dive(propval, required)
elif obj['type'] == 'array':
result['options'] = {}
if obj['elements']:
if obj.get('elements'):
result['elements'] = obj['elements']
if not 'items' in obj:
raise AnsibleFilterError('missing items key in array')
Expand Down

0 comments on commit 610f24b

Please sign in to comment.