File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,9 @@ def _create_filter(self):
329
329
continue
330
330
331
331
# Make sure every key within filters is considered a list, cast string to single entry list
332
- if isinstance (value , AnsibleMapping ):
332
+ if isinstance (value , ( AnsibleMapping , dict ) ):
333
333
value = dict (value )
334
- elif isinstance (value , AnsibleSequence ):
334
+ elif isinstance (value , ( AnsibleSequence , list ) ):
335
335
value = [to_text (val ) for val in value ]
336
336
else :
337
337
value = [to_text (value )]
@@ -358,7 +358,7 @@ def _create_filter(self):
358
358
continue
359
359
360
360
# Make sure 'attribute_values' is considered a list, cast string to single entry list
361
- if isinstance (attribute_values , AnsibleSequence ):
361
+ if isinstance (attribute_values , ( AnsibleSequence , list ) ):
362
362
attribute_values = [to_text (val ) for val in attribute_values ]
363
363
else :
364
364
attribute_values = [to_text (attribute_values )]
You can’t perform that action at this time.
0 commit comments