diff --git a/lib/ansible/modules/extras/system/timezone.py b/lib/ansible/modules/extras/system/timezone.py index ccf7a5829a..9c616d6123 100644 --- a/lib/ansible/modules/extras/system/timezone.py +++ b/lib/ansible/modules/extras/system/timezone.py @@ -20,7 +20,9 @@ import os import re -from ansible.module_utils.six import iteritems, iterkeys +from ansible.module_utils.basic import AnsibleModule, get_platform +from ansible.module_utils.six import iteritems + DOCUMENTATION = ''' --- @@ -111,7 +113,7 @@ class Timezone(object): # Initially there's only info of "planned" phase, but the # `self.check()` function will fill out it. self.value = dict() - for key in iterkeys(module.argument_spec): + for key in module.argument_spec: value = module.params[key] if value is not None: self.value[key] = dict(planned=value) @@ -456,7 +458,5 @@ def main(): module.exit_json(changed=changed, diff=diff) -from ansible.module_utils.basic import * - if __name__ == '__main__': main()