From d6c20b745254d1c76365f7c556186ae986d798b8 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 10 Sep 2024 18:51:42 +0000 Subject: [PATCH] Fix hosts.toml header var Resolves issue from 270f85e468853633674e2f1feed7428efde6aa55 that prevented old hosts.toml files from being cleaned up. Signed-off-by: Brad Davidson --- pkg/agent/templates/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/templates/templates.go b/pkg/agent/templates/templates.go index b233066e376e..623eba4aae17 100644 --- a/pkg/agent/templates/templates.go +++ b/pkg/agent/templates/templates.go @@ -41,7 +41,7 @@ type HostConfig struct { Endpoints []RegistryEndpoint } -var HostsTomlHeader = "# File generated by " + version.Program + ". DO NOT EDIT." +var HostsTomlHeader = "# File generated by " + version.Program + ". DO NOT EDIT.\n" const HostsTomlTemplate = ` {{- /* */ -}}