From f03da5be42d04c8f1cae0911a511dcbe54986d61 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 13 Oct 2015 09:47:16 +0300 Subject: [PATCH] Python 3: there's no iteritems() --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index ebf4bffe6f..d65c31ac47 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -186,7 +186,7 @@ class Task(Base, Conditional, Taggable, Become): else: new_ds['vars'] = dict() - for (k,v) in ds.iteritems(): + for (k,v) in iteritems(ds): if k in ('action', 'local_action', 'args', 'delegate_to') or k == action or k == 'shell': # we don't want to re-assign these values, which were # determined by the ModuleArgsParser() above