Skip to content

Commit

Permalink
logic
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rgamesh committed Apr 30, 2024
1 parent 4dfddd1 commit 9f96deb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/kayobe-automation-redact
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def annotate(ctx, value):
if not isinstance(value, str):
return value
path_str = *map(str, ctx['path']),
if path_str in annotation_exceptions:
if isinstance(annotation_exceptions[path_str], str):
return f"{annotation_exceptions[path_str]}.{value}"
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][value]
return annotation_exceptions[path_str[0]][value]
else:
return f"{'_'.join(path_str)}.{value}"

Expand Down

0 comments on commit 9f96deb

Please sign in to comment.