Fix wrong condition when fetching the logs on Docker

This commit is contained in:
Théophile Diot 2023-04-30 08:44:12 +02:00
parent 3b237ed3cc
commit a7b07c9599
No known key found for this signature in database
GPG key ID: E752C80DB72BB014

View file

@ -1487,7 +1487,7 @@ def logs_container(container_id):
tmp_logs = []
if docker_client:
try:
if integration == "Swarm":
if integration != "Swarm":
docker_logs = docker_client.containers.get(container_id).logs(
stdout=True,
stderr=True,