From a153911948d7cd5b2ef139d77ac77d00ca777fe3 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 5 Nov 2022 16:21:49 +0100 Subject: [PATCH] Forgot to write bootstrap to data dir during reload --- entrypoint/src/cmd/entrypoint/daemon.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint/src/cmd/entrypoint/daemon.go b/entrypoint/src/cmd/entrypoint/daemon.go index ed7ba3b..038628c 100644 --- a/entrypoint/src/cmd/entrypoint/daemon.go +++ b/entrypoint/src/cmd/entrypoint/daemon.go @@ -71,6 +71,11 @@ func reloadBootstrap( } hostBootstrap.Hosts = newHosts + + if err := writeBootstrapToDataDir(hostBootstrap); err != nil { + return bootstrap.Bootstrap{}, false, fmt.Errorf("writing new bootstrap to data dir: %w", err) + } + return hostBootstrap, true, nil }