ansible/test/integration/consul_running.py
2015-08-27 22:15:57 +03:00

11 lines
253 B
Python

''' Checks that the consul agent is running locally. '''
if __name__ == '__main__':
try:
import consul
consul = consul.Consul(host='0.0.0.0', port=8500)
consul.catalog.nodes()
print("True")
except:
pass