Skip to content

Commit 30db711

Browse files
committed
filter plugin to_argspec - type cast array type to list
Signed-off-by: Trishna Guha <[email protected]>
1 parent 1460086 commit 30db711

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)