mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
781fd7099a
- Move legacy tests into a separate directory. - Reduce common dependencies between targets.
11 lines
253 B
Python
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
|