From 6ea0573a4ddd604c51ed0a9a6fd687dd7ec6f9d3 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 25 Jul 2016 15:52:18 +0200 Subject: [PATCH] fix not enough arguments to return --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b0e4e19..f82e2dd 100644 --- a/main.go +++ b/main.go @@ -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