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):
329329 continue
330330
331331 # 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 ) ):
333333 value = dict (value )
334- elif isinstance (value , AnsibleSequence ):
334+ elif isinstance (value , ( AnsibleSequence , list ) ):
335335 value = [to_text (val ) for val in value ]
336336 else :
337337 value = [to_text (value )]
@@ -358,7 +358,7 @@ def _create_filter(self):
358358 continue
359359
360360 # 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 ) ):
362362 attribute_values = [to_text (val ) for val in attribute_values ]
363363 else :
364364 attribute_values = [to_text (attribute_values )]
You can’t perform that action at this time.
0 commit comments