Skip to content

Commit 6557006

Browse files
containerapps: fixing the build to account for the breaking change in Azure/azure-rest-api-specs#22339
1 parent a7d3145 commit 6557006

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/services/containerapps/helpers/container_apps.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func expandContainerAppIngressCustomDomain(input []CustomDomain) *[]containerapp
235235
for _, v := range input {
236236
customDomain := containerapps.CustomDomain{
237237
Name: v.Name,
238-
CertificateId: v.CertificateId,
238+
CertificateId: pointer.To(v.CertificateId),
239239
}
240240
bindingType := containerapps.BindingType(v.CertBinding)
241241
customDomain.BindingType = &bindingType
@@ -255,12 +255,14 @@ func flattenContainerAppIngressCustomDomain(input *[]containerapps.CustomDomain)
255255

256256
for _, v := range *input {
257257
customDomain := CustomDomain{
258-
CertificateId: v.CertificateId,
259-
Name: v.Name,
258+
Name: v.Name,
260259
}
261260
if v.BindingType != nil {
262261
customDomain.CertBinding = string(*v.BindingType)
263262
}
263+
if v.CertificateId != nil {
264+
customDomain.CertificateId = *v.CertificateId
265+
}
264266
result = append(result, customDomain)
265267
}
266268

0 commit comments

Comments
 (0)