mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
Python 2.6 str.format()
compatibility fixes.
This commit is contained in:
parent
95ff8f1a90
commit
797664d9cb
20 changed files with 43 additions and 62 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue