mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-12-26 14:51:19 +00:00
fix not enough arguments to return
This commit is contained in:
parent
1b8ed8fb83
commit
6ea0573a4d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -206,7 +206,7 @@ func getCACert() (string, error) {
|
||||||
path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca"}, "/")
|
path := strings.Join([]string{strings.Trim(cfg.PKIMountPoint, "/"), "cert", "ca"}, "/")
|
||||||
cs, err := client.Logical().Read(path)
|
cs, err := client.Logical().Read(path)
|
||||||
if err != nil {
|
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
|
return cs.Data["certificate"].(string), nil
|
||||||
|
|
Loading…
Reference in a new issue