Skip to content

Commit

Permalink
Use Replace instead of Update for Certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-french committed Jul 12, 2019
1 parent 3168f48 commit eabff8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octopusdeploy/resource_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func resourceCertificateUpdate(d *schema.ResourceData, m interface{}) error {

client := m.(*octopusdeploy.Client)

updatedCertificate, err := client.Certificate.Update(certificate)
updatedCertificate, err := client.Certificate.Replace(certificate)

if err != nil {
return fmt.Errorf("error updating certificate id %s: %s", d.Id(), err.Error())
Expand Down

0 comments on commit eabff8d

Please sign in to comment.