File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
internal/services/containerapps/helpers Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ func expandContainerAppIngressCustomDomain(input []CustomDomain) *[]containerapp
235
235
for _ , v := range input {
236
236
customDomain := containerapps.CustomDomain {
237
237
Name : v .Name ,
238
- CertificateId : v .CertificateId ,
238
+ CertificateId : pointer . To ( v .CertificateId ) ,
239
239
}
240
240
bindingType := containerapps .BindingType (v .CertBinding )
241
241
customDomain .BindingType = & bindingType
@@ -255,12 +255,14 @@ func flattenContainerAppIngressCustomDomain(input *[]containerapps.CustomDomain)
255
255
256
256
for _ , v := range * input {
257
257
customDomain := CustomDomain {
258
- CertificateId : v .CertificateId ,
259
- Name : v .Name ,
258
+ Name : v .Name ,
260
259
}
261
260
if v .BindingType != nil {
262
261
customDomain .CertBinding = string (* v .BindingType )
263
262
}
263
+ if v .CertificateId != nil {
264
+ customDomain .CertificateId = * v .CertificateId
265
+ }
264
266
result = append (result , customDomain )
265
267
}
266
268
You can’t perform that action at this time.
0 commit comments