From 62697ad77f35bd15b472d98defe79e8010aa1882 Mon Sep 17 00:00:00 2001 From: Andrea Tartaglia Date: Mon, 21 Nov 2016 15:18:52 +0000 Subject: [PATCH] Replaced iterkeys with 'for key in dict' for #18507 (#18538) --- lib/ansible/plugins/lookup/subelements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/subelements.py b/lib/ansible/plugins/lookup/subelements.py index 863130e26e..214a03a8f4 100644 --- a/lib/ansible/plugins/lookup/subelements.py +++ b/lib/ansible/plugins/lookup/subelements.py @@ -51,7 +51,7 @@ class LookupModule(LookupBase): # the registered result was completely skipped return [] elementlist = [] - for key in terms[0].iterkeys(): + for key in terms[0]: elementlist.append(terms[0][key]) else: elementlist = terms[0]