From 989d5c3da33f22e627608df8b4ba26fbcf486656 Mon Sep 17 00:00:00 2001 From: sfowl Date: Thu, 31 Oct 2024 09:54:59 +1000 Subject: [PATCH] fix bug in config redaction (#233) fix bump in config redaction --- rapidast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rapidast.py b/rapidast.py index 6ec964c..abdcf5b 100755 --- a/rapidast.py +++ b/rapidast.py @@ -149,6 +149,8 @@ def dump_redacted_config(config_file_location: str, destination_dir: str) -> boo logging.info(f"Redacting sensitive information from configuration {config_file_location}") for key in config.keys(): + if not isinstance(config[key], dict): + continue if config[key].get("authentication") and config[key]["authentication"].get("parameters"): for param in config[key]["authentication"]["parameters"]: config[key]["authentication"]["parameters"][param] = "*****"