autoconf - fix variable typo in k8s watch

This commit is contained in:
bunkerity 2023-04-04 12:35:26 +02:00
parent ecf4e77b32
commit eee03c4ae1

View file

@ -235,7 +235,7 @@ class IngressController(Controller, ConfigCaller):
locked = False
continue
self.__logger.info(
f"Catched kubernetes event ({what}), deploying new configuration ...",
f"Catched kubernetes event ({watch_type}), deploying new configuration ...",
)
try:
ret = self.apply_config()
@ -263,8 +263,9 @@ class IngressController(Controller, ConfigCaller):
except ApiException as e:
if e.status != 410:
self.__logger.error(
f"Exception while reading k8s event (type = {watch_type}) :\n{format_exc()}",
f"API exception while reading k8s event (type = {watch_type}) :\n{format_exc()}",
)
error = True
except:
self.__logger.error(
f"Unknown exception while reading k8s event (type = {watch_type}) :\n{format_exc()}",