solar-resources/resources/haproxy_service/test.py
2015-09-15 09:56:20 +02:00

11 lines
212 B
Python

import requests
from solar.core.log import log
def test(resource):
log.debug('Testing haproxy_service')
requests.get(
'http://%s:%s' % (resource.args['ip'], resource.args['ports'][0][0])
)