Skip to content

Commit 9b9fd2c

Browse files
fixed log error when trying to parse ip sans
1 parent d250c9b commit 9b9fd2c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cert_util.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ func (b *keyfactorBackend) submitCSR(ctx context.Context, req *logical.Request,
179179

180180
b.Logger().Debug("parsed response: ", certI...)
181181

182-
if err != nil {
183-
b.Logger().Error("unable to parse ca_chain response", fmt.Sprint(err))
184-
}
185182
caEntry, err := logical.StorageEntryJSON("ca_chain/", certs[1:])
186183
if err != nil {
187184
b.Logger().Error("error creating ca_chain entry", err)

path_certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ func (b *keyfactorBackend) pathSign(ctx context.Context, req *logical.Request, d
293293

294294
b.Logger().Debug("parsing ip_sans...")
295295
ip_sans_string, ok := data.GetOk("ip_sans")
296-
b.Logger().Trace(fmt.Sprintf("passed ip_sans: %s", ip_sans_string.(string)))
297296

298297
if ok && ip_sans_string != nil && ip_sans_string.(string) != "" {
298+
b.Logger().Trace(fmt.Sprintf("passed ip_sans: %s", ip_sans_string.(string)))
299299
ip_sans = strings.Split(ip_sans_string.(string), ",")
300300
}
301301

0 commit comments

Comments
 (0)