From 84488e6bcb1eaabe213e430093014f9979b0e44b Mon Sep 17 00:00:00 2001 From: Andreas Balogh Date: Thu, 11 Feb 2021 16:58:44 +0100 Subject: [PATCH] correctd dns lookup --- .gitlab-ci.yml | 1 + src/webui/flaskr/zeo_db.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf17121..feffc46 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,5 +48,6 @@ unit_test: paths: - var/ script: + - apt-get install -y wget - mkdir var - wget webui:5000 -o var/index.html diff --git a/src/webui/flaskr/zeo_db.py b/src/webui/flaskr/zeo_db.py index 175f04e..e77c66d 100644 --- a/src/webui/flaskr/zeo_db.py +++ b/src/webui/flaskr/zeo_db.py @@ -1,10 +1,12 @@ from ZEO.ClientStorage import ClientStorage from ZODB import DB +import socket from flask import Flask app = Flask(__name__) -storage = ClientStorage(("zeo", 8100)) +addr = socket.gethostbyname("zeo") +storage = ClientStorage((addr, 8100)) db = DB(storage) cx = db.open()