Style cleanups:
* Don't use iterkeys * Don't use wildcard imports
This commit is contained in:
parent
b255ac4ea6
commit
3cb7e4bd0e
1 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,9 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
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 = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
|
@ -111,7 +113,7 @@ class Timezone(object):
|
||||||
# Initially there's only info of "planned" phase, but the
|
# Initially there's only info of "planned" phase, but the
|
||||||
# `self.check()` function will fill out it.
|
# `self.check()` function will fill out it.
|
||||||
self.value = dict()
|
self.value = dict()
|
||||||
for key in iterkeys(module.argument_spec):
|
for key in module.argument_spec:
|
||||||
value = module.params[key]
|
value = module.params[key]
|
||||||
if value is not None:
|
if value is not None:
|
||||||
self.value[key] = dict(planned=value)
|
self.value[key] = dict(planned=value)
|
||||||
|
@ -456,7 +458,5 @@ def main():
|
||||||
module.exit_json(changed=changed, diff=diff)
|
module.exit_json(changed=changed, diff=diff)
|
||||||
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue