From eee03c4ae16f409b13bd64416a11ec00a4b59d2a Mon Sep 17 00:00:00 2001 From: bunkerity Date: Tue, 4 Apr 2023 12:35:26 +0200 Subject: [PATCH] autoconf - fix variable typo in k8s watch --- src/autoconf/IngressController.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/autoconf/IngressController.py b/src/autoconf/IngressController.py index 85103dbf9..f614adce7 100644 --- a/src/autoconf/IngressController.py +++ b/src/autoconf/IngressController.py @@ -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()}",