Skip to content

Commit

Permalink
Fixes SSL with missing fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmechlark committed Jul 25, 2023
1 parent 4367764 commit 99dab70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud66/resource_cloud66_ssl_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ func resourceCloud66SslCertificateRead(d *schema.ResourceData, meta interface{})

records, err := client.ListSslCertificates(stackID)
if records != nil {
if len(records) == 1 {
setCloud66SslCertificateData(d, &records[0])
return nil
}
for _, record := range records {
sha256Fingerprint := *record.SHA256Fingerprint
if sha256Fingerprint == d.Get("sha256_fingerprint").(string) {
Expand Down

0 comments on commit 99dab70

Please sign in to comment.