From af46e914bb17c297bd58e61c6e6e8e836fb36e63 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 5 Apr 2019 11:42:14 +0200 Subject: [PATCH] Fix config --- docker-compose-tests.yml | 2 ++ docker-compose.yml | 2 ++ poussetaches.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose-tests.yml b/docker-compose-tests.yml index 0a9c393..5d93b0e 100644 --- a/docker-compose-tests.yml +++ b/docker-compose-tests.yml @@ -32,6 +32,8 @@ services: - RABBITMQ_NODENAME=rabbit@my-rabbit poussetaches: image: "poussetaches:latest" + ports: + - '7991' environment: - POUSSETACHES_AUTH_KEY=123 networks: diff --git a/docker-compose.yml b/docker-compose.yml index e77552f..bfb08a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,5 +40,7 @@ services: - "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq" poussetaches: image: "poussetaches:latest" + ports: + - '7991' environment: - POUSSETACHES_AUTH_KEY=123 diff --git a/poussetaches.py b/poussetaches.py index f2532bc..ea989b6 100644 --- a/poussetaches.py +++ b/poussetaches.py @@ -33,7 +33,7 @@ class PousseTaches: ) resp.raise_for_status() - return resp.headers.get("Poussetaches-Task-ID") + return resp.headers["Poussetaches-Task-ID"] def parse(self, req: flask.Request) -> Task: if req.headers.get("Poussetaches-Auth-Key") != POUSSETACHES_AUTH_KEY: