Skip to content

Commit

Permalink
remove systemdata workarounds pending fix in go-azure-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Oct 25, 2022
1 parent 8970ee0 commit 71463b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestAccContainerAppEnvironmentDaprComponent_complete(t *testing.T) {
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep("secret"),
data.ImportStep(),
})
}

Expand All @@ -72,14 +72,14 @@ func TestAccContainerAppEnvironmentDaprComponent_completeUpdate(t *testing.T) {
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep("secret"),
data.ImportStep(),
{
Config: r.completeUpdate(data),
Check: acceptance.ComposeTestCheckFunc(
check.That(data.ResourceName).ExistsInAzure(r),
),
},
data.ImportStep("secret"),
data.ImportStep(),
})
}

Expand Down
4 changes: 0 additions & 4 deletions internal/services/containerapps/container_app_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,6 @@ func (r ContainerAppResource) Update() sdk.ResourceFunc {

model.Properties.Template = helpers.ExpandContainerAppTemplate(state.Template, metadata)

// Zero R/O - API rejects the request if eny of these are set
model.SystemData = nil
model.Properties.OutboundIPAddresses = nil

if err := client.CreateOrUpdateThenPoll(ctx, *id, *model); err != nil {
return fmt.Errorf("updating %s: %+v", *id, err)
}
Expand Down

0 comments on commit 71463b8

Please sign in to comment.