mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-19 23:49:09 -07:00
Removed dict.iteritems() in several other files.
This is for py3 compatibility #18506
This commit is contained in:
parent
7c71c678fa
commit
59227d8c31
13 changed files with 31 additions and 31 deletions
|
@ -376,7 +376,7 @@ class ModuleValidator(Validator):
|
|||
errors.extend(e.errors)
|
||||
|
||||
options = doc.get('options', {})
|
||||
for key, option in (options or {}).iteritems():
|
||||
for key, option in (options or {}).items():
|
||||
try:
|
||||
option_schema(option)
|
||||
except Exception as e:
|
||||
|
@ -525,7 +525,7 @@ class ModuleValidator(Validator):
|
|||
should_be = '.'.join(ansible_version.split('.')[:2])
|
||||
strict_ansible_version = StrictVersion(should_be)
|
||||
|
||||
for option, details in options.iteritems():
|
||||
for option, details in options.items():
|
||||
new = not bool(existing_options.get(option))
|
||||
if not new:
|
||||
continue
|
||||
|
|
|
@ -29,7 +29,7 @@ from ansible.plugins.action.synchronize import ActionModule
|
|||
'''
|
||||
import copy
|
||||
safe_vars = {}
|
||||
for k,v in task_vars.iteritems():
|
||||
for k,v in task_vars.items():
|
||||
if k not in ['vars', 'hostvars']:
|
||||
safe_vars[k] = copy.deepcopy(v)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue