Fix logging provisioner name as string

This commit is contained in:
Herman Slatman 2021-07-15 23:13:08 +02:00
parent b9743b36e1
commit 9210a6740b
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -418,7 +418,7 @@ func LogCertificate(w http.ResponseWriter, cert *x509.Certificate) {
if len(val.CredentialID) > 0 { if len(val.CredentialID) > 0 {
m["provisioner"] = fmt.Sprintf("%s (%s)", val.Name, val.CredentialID) m["provisioner"] = fmt.Sprintf("%s (%s)", val.Name, val.CredentialID)
} else { } else {
m["provisioner"] = val.Name m["provisioner"] = string(val.Name)
} }
break break
} }