autoconf - fix edge case when configs are managed before services

This commit is contained in:
florian 2024-03-17 23:38:59 +01:00
parent f135aa5c51
commit a7af4c548b
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500

View file

@ -83,6 +83,13 @@ class DockerController(Controller):
if not server_name:
continue
# check if server_name exists
if not self._is_service_present(server_name):
self._logger.warning(
f"Ignoring config because {server_name} doesn't exist",
)
continue
for variable, value in labels.items():
if not variable.startswith("bunkerweb."):
continue