Skip to content

Commit 412550a

Browse files
haimschhkantare
authored andcommitted
Fix handling of bundle_certs in Secrets Manager public cert
1 parent bfe1d82 commit 412550a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ibm/service/secretsmanager/resource_ibm_sm_public_certificate.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,9 @@ func resourceIbmSmPublicCertificateMapToSecretPrototype(d *schema.ResourceData)
781781
model.Dns = core.StringPtr(d.Get("dns").(string))
782782
}
783783
}
784-
if _, ok := d.GetOk("bundle_certs"); ok {
785-
model.BundleCerts = core.BoolPtr(d.Get("bundle_certs").(bool))
784+
bundleCerts, ok := d.GetOkExists("bundle_certs")
785+
if ok {
786+
model.BundleCerts = core.BoolPtr(bundleCerts.(bool))
786787
}
787788
if _, ok := d.GetOk("rotation"); ok {
788789
RotationModel, err := resourceIbmSmPublicCertificateMapToPublicCertificateRotationPolicy(d.Get("rotation").([]interface{})[0].(map[string]interface{}))

0 commit comments

Comments
 (0)