Forgot to write bootstrap to data dir during reload

This commit is contained in:
Brian Picciano 2022-11-05 16:21:49 +01:00
parent 0b094f057e
commit a153911948

View File

@ -71,6 +71,11 @@ func reloadBootstrap(
} }
hostBootstrap.Hosts = newHosts 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 return hostBootstrap, true, nil
} }