mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 00:21:07 +02:00
Cleanup routines should now use routeEntry instead of mountEntry.
This commit is contained in:
parent
a769c1231b
commit
be1b9e5a36
@ -468,7 +468,7 @@ func (c *Core) unloadMounts() error {
|
||||
prefix := e.Path
|
||||
b, ok := c.router.root.Get(prefix)
|
||||
if ok {
|
||||
b.(*mountEntry).backend.Cleanup()
|
||||
b.(*routeEntry).backend.Cleanup()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,9 +77,9 @@ func (r *Router) Unmount(prefix string) error {
|
||||
defer r.l.Unlock()
|
||||
|
||||
// Call backend's Cleanup routine
|
||||
me, ok := r.root.Get(prefix)
|
||||
re, ok := r.root.Get(prefix)
|
||||
if ok {
|
||||
me.(*mountEntry).backend.Cleanup()
|
||||
re.(*routeEntry).backend.Cleanup()
|
||||
}
|
||||
r.root.Delete(prefix)
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user