From a05431f879a8c29fac6356b6c46be62133c3e93c Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Mon, 7 Oct 2024 10:01:28 -0700 Subject: [PATCH] fix: promtail config unmarshalling (#14408) Signed-off-by: Callum Styan --- clients/pkg/promtail/config/config.go | 1 - 1 file changed, 1 deletion(-) diff --git a/clients/pkg/promtail/config/config.go b/clients/pkg/promtail/config/config.go index 0454a8facf494..7e0e2b63fe173 100644 --- a/clients/pkg/promtail/config/config.go +++ b/clients/pkg/promtail/config/config.go @@ -42,7 +42,6 @@ type Config struct { // UnmarshalYAML implements the yaml.Unmarshaler interface. func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error { - *c = Config{} // We want to set c to the defaults and then overwrite it with the input. // To make unmarshal fill the plain data struct rather than calling UnmarshalYAML // again, we have to hide it using a type indirection.