From 5d12dc3b1c0964a1fe18a5479a7ecc7a2bce96ec Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 30 Oct 2024 09:18:20 +1000 Subject: [PATCH] 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] = "*****"