From 9bda1bcbd25e480797fd71120bd76a1f7c9d10f9 Mon Sep 17 00:00:00 2001 From: ncabatoff Date: Mon, 17 Jun 2019 14:11:35 -0400 Subject: [PATCH] Add new license callback init step for logical backends. (#6887) --- vault/mount.go | 2 ++ vault/mount_util.go | 1 + 2 files changed, 3 insertions(+) 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 {