Skip to content

Commit

Permalink
Update internal/services/apicenter/api_center_service_resource.go
Browse files Browse the repository at this point in the history
Co-authored-by: stephybun <[email protected]>
  • Loading branch information
favoretti and stephybun authored Feb 26, 2025
1 parent 6def0a4 commit 7d37855
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/services/apicenter/api_center_service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,14 @@ func (r ApiCenterServiceResource) Read() sdk.ResourceFunc {
}
return fmt.Errorf("retrieving %s: %+v", *id, err)
}

state := ApiCenterServiceResourceModel{
Name: id.ServiceName,
Location: location.Normalize(resp.Model.Location),
ResourceGroup: id.ResourceGroupName,
}

if model := resp.Model; model != nil {
if model.Tags != nil {
state.Tags = *model.Tags
}
state.Location = location.Normalize(model.Location)
state.Tags = pointer.From(model.Tags)

Check failure on line 178 in internal/services/apicenter/api_center_service_resource.go

View workflow job for this annotation

GitHub Actions / document-lint

undefined: pointer

if model.Identity != nil {
identityValue, err := identity.FlattenLegacySystemAndUserAssignedMap(model.Identity)
Expand Down

0 comments on commit 7d37855

Please sign in to comment.