diff options
author | Matt Clay <matt@mystile.com> | 2016-12-06 18:00:35 -0500 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2016-12-08 11:35:20 -0500 |
commit | 75c281debc2b29399ecd14e1dfc4898460811e24 (patch) | |
tree | b34f8769045251d5794d6c3cd376f91bd2dc8b34 /examples/scripts | |
parent | 47083f145aeefd574b1f1db42defe8632bc7e223 (diff) | |
download | ansible-75c281debc2b29399ecd14e1dfc4898460811e24.tar.gz |
Fix compile errors in scripts.
Diffstat (limited to 'examples/scripts')
-rwxr-xr-x | examples/scripts/uptime.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/scripts/uptime.py b/examples/scripts/uptime.py index 3ea6725b75..6357d5a75e 100755 --- a/examples/scripts/uptime.py +++ b/examples/scripts/uptime.py @@ -72,17 +72,17 @@ def main(): if tqm is not None: tqm.cleanup() - print "UP ***********" + print("UP ***********") for host, result in callback.host_ok.items(): - print '{} >>> {}'.format(host, result._result['stdout']) + print('{} >>> {}'.format(host, result._result['stdout'])) - print "FAILED *******" + print("FAILED *******") for host, result in callback.host_failed.items(): - print '{} >>> {}'.format(host, result._result['msg']) + print('{} >>> {}'.format(host, result._result['msg'])) - print "DOWN *********" + print("DOWN *********") for host, result in callback.host_unreachable.items(): - print '{} >>> {}'.format(host, result._result['msg']) + print('{} >>> {}'.format(host, result._result['msg'])) if __name__ == '__main__': main() |