autoconf - add missing import and fix double lock release

This commit is contained in:
bunkerity 2023-04-04 17:00:51 +02:00
parent 6af3b985a0
commit 9f70605643
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
from os import getenv
from time import sleep
from traceback import format_exc
from threading import Thread, Lock
from docker import DockerClient
@ -141,6 +142,7 @@ class SwarmController(Controller, ConfigCaller):
):
self.__internal_lock.release()
locked = False
continue
self.__logger.info(
f"Catched Swarm event ({event_type}), deploying new configuration ..."
)