diff options
Diffstat (limited to 'server/wkfs/vaultfs')
-rw-r--r-- | server/wkfs/vaultfs/vault.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/wkfs/vaultfs/vault.go b/server/wkfs/vaultfs/vault.go index 6f11057..f7c1360 100644 --- a/server/wkfs/vaultfs/vault.go +++ b/server/wkfs/vaultfs/vault.go @@ -14,6 +14,10 @@ import ( // Register the /vault/ filesystem as a well-known filesystem. func Register(vc *config.Vault) { + if vc == nil { + registerBrokenFS(errors.New("no vault configuration found")) + return + } client, err := vault.NewClient(vc.Address, vc.Token) if err != nil { registerBrokenFS(err) |