Skip to content

Commit 4c19e00

Browse files
Merge pull request #20 from trishnaguha/fix_to_argpsec_plugin
filter plugin to_argspec - type cast array type to list Reviewed-by: Trishna Guha <[email protected]> https://github.com/trishnaguha
2 parents bae99d5 + 30db711 commit 4c19e00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/resource_module/filter_plugins/to_argspec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def dive(obj, required=False):
3131
for propkey, propval in iteritems(obj['items']['properties']):
3232
required = bool('required' in obj['items'] and propkey in obj['items']['required'])
3333
result['options'][propkey] = dive(propval, required)
34+
result['type'] = 'list'
3435
elif obj['type'] in ['str', 'bool', 'int']:
3536
if 'default' in obj:
3637
result['default'] = obj['default']

0 commit comments

Comments
 (0)