Commit 037113dd authored by Lukas Nemec's avatar Lukas Nemec

Added correct balancer address.

parent 9aeee4dd
......@@ -28,9 +28,9 @@ class Balancer():
print("API returned invalid response: {}".format(resp.text))
return None
self.cache[self.CACHE_KEY] = resp.json()
self.cache[self.CACHE_KEY] = cached_resp = resp.json()
return self.cache.get(self.CACHE_KEY)
return cached_resp
@property
def host(self):
......
......@@ -6,7 +6,7 @@ DEFAULT_PORT = 2222
DEFAULT_HONEYPOT_HOST = 'haas-app.nic.cz'
DEFAULT_HONEYPOT_PORT = 10000
DEFAULT_BALANCER_CHECK_INTERVAL = 3600
DEFAULT_BALANCER_ADDRESS = 'http://127.0.0.1:5000'
DEFAULT_BALANCER_ADDRESS = 'https://haas.nic.cz/api/honeypot-loadbalancer'
# pylint: disable=line-too-long
DEFAULT_PUBLIC_KEY = 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQC2jdAE4EAAKikW6W/dDmWS/0lQ1jWM6c6Ef+KpGr+jW83/XIR2reWXeeDTIEluL20JV/P2+2bvVShNr4w8SWitcYKTpwkSgGYHo2vAQvXArx/CsRnTAP6NwrxuZoLNO52fMXQWSrqs0tEvkzYXR3PcR6Cq07RN7QkYNWctCYJxdw=='
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment