From: Lorin Hochstein Date: Wed, 11 Jan 2017 07:04:44 +0000 (-0800) Subject: Use explicit import X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=630a8c9d0b9646112086c685ff98800f164aa1bd;p=ansiblebook.git Use explicit import --- diff --git a/ch10/playbooks/library/can_reach b/ch10/playbooks/library/can_reach index 3c78849..1b1ff9f 100644 --- a/ch10/playbooks/library/can_reach +++ b/ch10/playbooks/library/can_reach @@ -1,4 +1,5 @@ #!/usr/bin/python +from ansible.module_utils.basic import AnsibleModule def can_reach(module, host, port, timeout): nc_path = module.get_bin_path('nc', required=True) @@ -33,5 +34,4 @@ def main(): msg = "Could not reach %s:%s" % (host, port) module.fail_json(msg=msg) -from ansible.module_utils.basic import * main()