From 82475637efc2726d2bd3b9a30d36257222d5bfd9 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 29 Nov 2016 01:26:30 -0800 Subject: [PATCH] Remove iteritems from portage module for python3 --- lib/ansible/modules/extras/packaging/os/portage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/portage.py b/lib/ansible/modules/extras/packaging/os/portage.py index f88b67fa9ae..a7f43182cdc 100644 --- a/lib/ansible/modules/extras/packaging/os/portage.py +++ b/lib/ansible/modules/extras/packaging/os/portage.py @@ -302,7 +302,7 @@ def emerge_packages(module, packages): 'usepkg': '--usepkg', 'keepgoing': '--keep-going', } - for flag, arg in emerge_flags.iteritems(): + for flag, arg in emerge_flags.items(): if p[flag]: args.append(arg) @@ -314,7 +314,7 @@ def emerge_packages(module, packages): 'loadavg': '--load-average ', } - for flag, arg in emerge_flags.iteritems(): + for flag, arg in emerge_flags.items(): if p[flag] is not None: args.append(arg + str(p[flag]))