Skip to content

Commit 270327f

Browse files
committed
style: fix formatting, trailing spaces, and missing newlines
1 parent ea53c2f commit 270327f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.chloggen/fix-unredacted-defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
change_type: bug_fix
2-
component: [confmap, pkg/otelcol]
2+
component: pkg/otelcol
33
note: Fix missing default values in unredacted print-config command by introducing confmap.WithUnredacted MarshalOption.
44
subtext: |
55
Resolves an issue where the unredacted mode output omitted all default-valued options. By introducing a new MarshalOption to disable redaction directly at the confmap encoding level, the unredacted mode now preserves all component defaults natively without requiring post-processing.

confmap/internal/mapstructure/encoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,4 @@ func StringTextUnredactedHookFunc() mapstructure.DecodeHookFuncValue {
278278
}
279279
return from.Interface(), nil
280280
}
281-
}
281+
}

otelcol/command_print.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ func (pctx *printContext) printRedactedConfig() error {
183183
}
184184

185185
return pctx.printConfigData(confMap.ToStringMap())
186-
}
186+
}

otelcol/command_print_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func TestPrintCommand(t *testing.T) {
7575
name: "invalid syntax without validate",
7676
path: invalidConfig1,
7777
errString: "'timeout' time: invalid duration",
78-
errOnlyRedacted: false,
78+
errOnlyRedacted: false,
7979
},
8080
{
8181
name: "validation fail",

0 commit comments

Comments
 (0)