mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Support print() function in test/
This commit is contained in:
parent
9ae66a7f5c
commit
727cb8a917
4 changed files with 5 additions and 5 deletions
|
@ -57,7 +57,7 @@ def delete_aws_eips(get_func, attr, opts):
|
||||||
try:
|
try:
|
||||||
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
eip_log = open(opts.eip_log, 'r').read().splitlines()
|
||||||
except IOError:
|
except IOError:
|
||||||
print opts.eip_log, 'not found.'
|
print('%s not found.' % opts.eip_log)
|
||||||
return
|
return
|
||||||
|
|
||||||
for item in get_func():
|
for item in get_func():
|
||||||
|
@ -176,4 +176,4 @@ if __name__ == '__main__':
|
||||||
delete_aws_instances(aws.get_all_instances(filters=filters), opts)
|
delete_aws_instances(aws.get_all_instances(filters=filters), opts)
|
||||||
|
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
print "\nExiting on user command."
|
print("\nExiting on user command.")
|
||||||
|
|
|
@ -74,4 +74,4 @@ if __name__ == '__main__':
|
||||||
# Delete matching disks
|
# Delete matching disks
|
||||||
delete_gce_resources(gce.list_volumes, 'name', opts)
|
delete_gce_resources(gce.list_volumes, 'name', opts)
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
print "\nExiting on user command."
|
print("\nExiting on user command.")
|
||||||
|
|
|
@ -6,6 +6,6 @@ if __name__ == '__main__':
|
||||||
import consul
|
import consul
|
||||||
consul = consul.Consul(host='0.0.0.0', port=8500)
|
consul = consul.Consul(host='0.0.0.0', port=8500)
|
||||||
consul.catalog.nodes()
|
consul.catalog.nodes()
|
||||||
print "True"
|
print("True")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -39,4 +39,4 @@ if __name__ == '__main__':
|
||||||
gce.create_volume(
|
gce.create_volume(
|
||||||
size=10, name=prefix+'-extra', location='us-central1-a')
|
size=10, name=prefix+'-extra', location='us-central1-a')
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
print "\nExiting on user command."
|
print("\nExiting on user command.")
|
||||||
|
|
Loading…
Reference in a new issue