summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-01-10 21:03:25 +0100
committerMatt Clay <matt@mystile.com>2018-01-10 23:08:11 +0100
commit797664d9cb681a66b3c2e17405d23b9c8723321c (patch)
tree16533e8024c9c9dde42da9d7f6b61444a3e71f24 /examples
parentChange cow path selection variable from COWPATH to COW_PATH (#34063) (diff)
downloadansible-797664d9cb681a66b3c2e17405d23b9c8723321c.tar.xz
ansible-797664d9cb681a66b3c2e17405d23b9c8723321c.zip
Python 2.6 `str.format()` compatibility fixes.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/scripts/uptime.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/scripts/uptime.py b/examples/scripts/uptime.py
index e27c5e83b2..68bf375cdc 100755
--- a/examples/scripts/uptime.py
+++ b/examples/scripts/uptime.py
@@ -77,15 +77,15 @@ def main():
print("UP ***********")
for host, result in callback.host_ok.items():
- print('{} >>> {}'.format(host, result._result['stdout']))
+ print('{0} >>> {1}'.format(host, result._result['stdout']))
print("FAILED *******")
for host, result in callback.host_failed.items():
- print('{} >>> {}'.format(host, result._result['msg']))
+ print('{0} >>> {1}'.format(host, result._result['msg']))
print("DOWN *********")
for host, result in callback.host_unreachable.items():
- print('{} >>> {}'.format(host, result._result['msg']))
+ print('{0} >>> {1}'.format(host, result._result['msg']))
if __name__ == '__main__':
main()