mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
add reload census changes (#26456)
This commit is contained in:
parent
3f19f8b0f0
commit
bd9c9c5daa
@ -10,3 +10,4 @@ import "context"
|
||||
//go:generate go run github.com/hashicorp/vault/tools/stubmaker
|
||||
|
||||
func (c *Core) StartCensusReports(ctx context.Context) {}
|
||||
func (c *Core) ReloadCensusActivityLog() error { return nil }
|
||||
|
||||
@ -442,7 +442,9 @@ func (b *SystemBackend) handleActivityConfigUpdate(ctx context.Context, req *log
|
||||
|
||||
// reload census agent if retention months change during update when reporting is enabled
|
||||
if prevRetentionMonths != config.RetentionMonths {
|
||||
a.core.ReloadCensus()
|
||||
if err := a.core.ReloadCensusActivityLog(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
if len(warnings) > 0 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user