git://git.halfball.org
/
ansiblebook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630a8c9
)
dunder main
author
Lorin Hochstein
<lhochstein@netflix.com>
Fri, 13 Jan 2017 04:55:43 +0000
(20:55 -0800)
committer
Lorin Hochstein
<lhochstein@netflix.com>
Fri, 13 Jan 2017 04:55:43 +0000
(20:55 -0800)
ch10/playbooks/library/can_reach
patch
|
blob
|
history
diff --git
a/ch10/playbooks/library/can_reach
b/ch10/playbooks/library/can_reach
index
1b1ff9f
..
b886fc3
100644
(file)
--- a/
ch10/playbooks/library/can_reach
+++ b/
ch10/playbooks/library/can_reach
@@
-34,4
+34,5
@@
def main():
msg = "Could not reach %s:%s" % (host, port)
module.fail_json(msg=msg)
-main()
+if __name__ == "__main__":
+ main()