Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions plugins/filter/lists_mergeby.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
'''

from ansible.errors import AnsibleFilterError
from ansible.module_utils.six import string_types
from ansible.module_utils.common._collections_compat import Mapping, Sequence
from ansible.utils.vars import merge_hash

Expand Down Expand Up @@ -170,7 +169,7 @@ def lists_mergeby(*terms, **kwargs):

index = terms[-1]

if not isinstance(index, string_types):
if not isinstance(index, str):
msg = ("First argument after the lists for lists_mergeby must be string. "
"%s is %s")
raise AnsibleFilterError(msg % (index, type(index)))
Expand Down
Loading