1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-12-25 14:21:21 +00:00

fix not enough arguments to return

This commit is contained in:
Knut Ahlers 2016-07-25 15:52:18 +02:00
parent 1b8ed8fb83
commit 6ea0573a4d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -206,7 +206,7 @@ func getCACert() (string, error) {
path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca"}, "/")
cs, err := client.Logical().Read(path)
if err != nil {
return errors.New("Unable to read certificate: " + err.Error())
return "", errors.New("Unable to read certificate: " + err.Error())
}
return cs.Data["certificate"].(string), nil