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: