diff --git a/command/server.go b/command/server.go index 35ced21ffd..97ba1ffea3 100644 --- a/command/server.go +++ b/command/server.go @@ -1711,7 +1711,7 @@ func (c *ServerCommand) Run(args []string) int { sr.NotifyConfigurationReload(srConfig) } - if err := core.ReloadCensusManager(); err != nil { + if err := core.ReloadCensusManager(false); err != nil { c.UI.Error(err.Error()) } diff --git a/command/server_util.go b/command/server_util.go index 4573ec14ec..c0227ea28b 100644 --- a/command/server_util.go +++ b/command/server_util.go @@ -24,6 +24,10 @@ func (c *ServerCommand) ReloadedCh() chan struct{} { return c.reloadedCh } +func (c *ServerCommand) LicenseReloadedCh() chan error { + return c.licenseReloadedCh +} + func testServerCommand(tb testing.TB) (*cli.MockUi, *ServerCommand) { tb.Helper() diff --git a/vault/census_stubs_oss.go b/vault/census_stubs_oss.go index 0b5b1c11f0..f52717a5c9 100644 --- a/vault/census_stubs_oss.go +++ b/vault/census_stubs_oss.go @@ -9,6 +9,6 @@ import "context" //go:generate go run github.com/hashicorp/vault/tools/stubmaker -func (c *Core) StartCensusReports(ctx context.Context) {} -func (c *Core) SetRetentionMonths(months int) error { return nil } -func (c *Core) ReloadCensusManager() error { return nil } +func (c *Core) StartCensusReports(ctx context.Context) {} +func (c *Core) SetRetentionMonths(months int) error { return nil } +func (c *Core) ReloadCensusManager(licenseChange bool) error { return nil }