mirror of https://github.com/hashicorp/consul
add missing state reset when stopping ca manager
parent
6228c4a53c
commit
047537833d
|
@ -278,8 +278,11 @@ func (c *CAManager) Stop() {
|
|||
needsStop.Stop()
|
||||
}
|
||||
}
|
||||
c.setCAProvider(nil, nil)
|
||||
|
||||
c.setState(caStateUninitialized, false)
|
||||
c.primaryRoots = structs.IndexedCARoots{}
|
||||
c.actingSecondaryCA = false
|
||||
c.setCAProvider(nil, nil)
|
||||
}
|
||||
|
||||
func (c *CAManager) startPostInitializeRoutines(ctx context.Context) {
|
||||
|
|
Loading…
Reference in New Issue