summaryrefslogtreecommitdiff
path: root/lib/ansible/inventory
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2021-10-21 10:40:04 +0200
committerGitHub <noreply@github.com>2021-10-21 10:40:04 +0200
commit0f95371131cd41d97ad95c4e8bd983081eb29a2a (patch)
treecdcf1958c5931acd7eb14bac0bf56297e585860b /lib/ansible/inventory
parent7621784b947adb497a24725259318506a102d1a4 (diff)
downloadansible-0f95371131cd41d97ad95c4e8bd983081eb29a2a.tar.gz
Start of moving away from six (#75863)
ci_complete
Diffstat (limited to 'lib/ansible/inventory')
-rw-r--r--lib/ansible/inventory/data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/inventory/data.py b/lib/ansible/inventory/data.py
index cf6fbb66ac..15a64202d9 100644
--- a/lib/ansible/inventory/data.py
+++ b/lib/ansible/inventory/data.py
@@ -25,7 +25,7 @@ from ansible import constants as C
from ansible.errors import AnsibleError
from ansible.inventory.group import Group
from ansible.inventory.host import Host
-from ansible.module_utils.six import iteritems, string_types
+from ansible.module_utils.six import string_types
from ansible.utils.display import Display
from ansible.utils.vars import combine_vars
from ansible.utils.path import basedir
@@ -277,7 +277,7 @@ class InventoryData(object):
We merge a 'magic' var 'groups' with group name keys and hostname list values into every host variable set. Cache for speed.
"""
if not self._groups_dict_cache:
- for (group_name, group) in iteritems(self.groups):
+ for (group_name, group) in self.groups.items():
self._groups_dict_cache[group_name] = [h.name for h in group.get_hosts()]
return self._groups_dict_cache