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