From 96c0dccbd3e96fbc6227034761bcbf60ac9f1c0c Mon Sep 17 00:00:00 2001 From: Ranabir Chakraborty Date: Wed, 3 Dec 2025 12:34:06 +0530 Subject: [PATCH] AMW-454 Fix amq collecton sanity test issue --- plugins/filter/lists_mergeby.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/filter/lists_mergeby.py b/plugins/filter/lists_mergeby.py index d66933de..eddda08f 100644 --- a/plugins/filter/lists_mergeby.py +++ b/plugins/filter/lists_mergeby.py @@ -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 @@ -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)))