Skip to content

Commit

Permalink
Create CSR returns the wrong error (#1206)
Browse files Browse the repository at this point in the history
Log the error returned by `CertificateSigningRequests().Create`.
  • Loading branch information
johnhoman authored Mar 29, 2021
1 parent ac6f58b commit e84777a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func resourceKubernetesCertificateSigningRequestCreate(ctx context.Context, d *s
log.Printf("[INFO] Creating new certificate signing request: %#v", csr)
newCSR, createErr := conn.CertificatesV1beta1().CertificateSigningRequests().Create(ctx, &csr, metav1.CreateOptions{})
if createErr != nil {
return diag.Errorf("Failed to create certificate signing request: %s", err)
return diag.Errorf("Failed to create certificate signing request: %s", createErr)
}

// Get the name, since it might have been randomly generated during create.
Expand Down

0 comments on commit e84777a

Please sign in to comment.