summaryrefslogtreecommitdiff
path: root/test/legacy/consul_running.py
blob: f64aaeecc382e06dfb727ce83299ee2c3e31806a (plain)
1
2
3
4
5
6
7
8
9
10
11
''' 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