From eca7887a5beb56ad1607f043fe08e855430accdd Mon Sep 17 00:00:00 2001 From: Rafal Lewandowski Date: Mon, 6 May 2024 08:29:40 +0200 Subject: [PATCH] logic fix --- utils/kayobe-automation-redact | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/kayobe-automation-redact b/utils/kayobe-automation-redact index 8fb8621..967fdd6 100755 --- a/utils/kayobe-automation-redact +++ b/utils/kayobe-automation-redact @@ -15,9 +15,9 @@ def annotate(ctx, value): path_str = *map(str, ctx['path']), if path_str[0] in annotation_exceptions: if isinstance(annotation_exceptions[path_str[0]], str): - return f"{annotation_exceptions[path_str[0]]}.{value}" - else: return annotation_exceptions[path_str[0]] + else: + return annotation_exceptions[path_str[0]][value] else: return f"{'_'.join(path_str)}.{value}"