From 206ee9ed2819dbe98908a3c3121e3b369fe9c851 Mon Sep 17 00:00:00 2001 From: Artem Kotik Date: Sat, 22 Jun 2024 16:31:00 +0200 Subject: [PATCH] Fix logging in SecretsMixin --- netbox_config_diff/compliance/secrets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_config_diff/compliance/secrets.py b/netbox_config_diff/compliance/secrets.py index 14d6d79..779de6d 100644 --- a/netbox_config_diff/compliance/secrets.py +++ b/netbox_config_diff/compliance/secrets.py @@ -34,7 +34,7 @@ def get_master_key(self) -> None: self.master_key = sk.get_master_key(self.session_key) except Exception as e: if getattr(self, "logger"): - self.logger.log_failure(f"Can't fetch master_key: {str(e)}") + self.log_failure(f"Can't fetch master_key: {str(e)}") else: self.log_failure(f"Can't fetch master_key: {str(e)}")