We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ee860 commit 262a313Copy full SHA for 262a313
utils/kayobe-automation-redact
@@ -10,13 +10,13 @@ annotation_exceptions = {
10
}
11
12
def annotate(ctx, value):
13
- if not isinstance(value, str):
14
- return value
15
- path_str = map(str, ctx['path'])
16
- if path_str in annotation_exceptions:
17
- return f"{'.'.join(annotation_exceptions['prometheus_bcrypt_salt'])}.{value}"
18
- else:
19
- return f"{'.'.join(path_str)}.{ value }"
+ if not isinstance(value, str):
+ return value
+ path_str = ctx['path'][0]
+ if path_str in annotation_exceptions:
+ return f"{annotation_exceptions[path_str]}.{value}"
+ else:
+ return f"{path_str}.{value}"
20
21
def redact_int(ctx, x):
22
# For numbers we can't indicate change with a string, so use sentinal values
0 commit comments