diff --git a/vault/mount.go b/vault/mount.go index 6177f4a3f2..6e8f239964 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -483,6 +483,8 @@ func (c *Core) mountInternal(ctx context.Context, entry *MountEntry, updateStora addPathCheckers(c, entry, backend, viewPath) + addLicenseCallback(c, backend) + c.setCoreBackend(entry, backend, view) // If the mount is filtered or we are on a DR secondary we don't want to diff --git a/vault/mount_util.go b/vault/mount_util.go index a17434bc9c..7f6dfe9cba 100644 --- a/vault/mount_util.go +++ b/vault/mount_util.go @@ -17,6 +17,7 @@ func removeAuditPathChecker(*Core, *MountEntry) {} func addFilterablePath(*Core, string) {} func preprocessMount(*Core, *MountEntry, *BarrierView) (bool, error) { return false, nil } func clearIgnoredPaths(context.Context, *Core, logical.Backend, string) error { return nil } +func addLicenseCallback(*Core, logical.Backend) {} // ViewPath returns storage prefix for the view func (e *MountEntry) ViewPath() string {