Skip to content

Commit

Permalink
Fix handling of bundle_certs in Secrets Manager public cert
Browse files Browse the repository at this point in the history
  • Loading branch information
haimsch authored and hkantare committed Oct 12, 2023
1 parent bfe1d82 commit 412550a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,9 @@ func resourceIbmSmPublicCertificateMapToSecretPrototype(d *schema.ResourceData)
model.Dns = core.StringPtr(d.Get("dns").(string))
}
}
if _, ok := d.GetOk("bundle_certs"); ok {
model.BundleCerts = core.BoolPtr(d.Get("bundle_certs").(bool))
bundleCerts, ok := d.GetOkExists("bundle_certs")
if ok {
model.BundleCerts = core.BoolPtr(bundleCerts.(bool))
}
if _, ok := d.GetOk("rotation"); ok {
RotationModel, err := resourceIbmSmPublicCertificateMapToPublicCertificateRotationPolicy(d.Get("rotation").([]interface{})[0].(map[string]interface{}))
Expand Down

0 comments on commit 412550a

Please sign in to comment.