mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Simplify FactCache.copy()
Also fix the bug (missing from six import iteritems) I introduced in
823677b490
.
This commit is contained in:
parent
ce97874523
commit
a32bf1ec18
2 changed files with 17 additions and 2 deletions
2
lib/ansible/plugins/cache/__init__.py
vendored
2
lib/ansible/plugins/cache/__init__.py
vendored
|
@ -60,7 +60,7 @@ class FactCache(MutableMapping):
|
|||
|
||||
def copy(self):
|
||||
""" Return a primitive copy of the keys and values from the cache. """
|
||||
return dict([(k, v) for (k, v) in iteritems(self)])
|
||||
return dict(self)
|
||||
|
||||
def keys(self):
|
||||
return self._plugin.keys()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue