Skip to content

Commit

Permalink
Update internal/services/apicenter/api_center_environment_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 22f7424 commit 66dfc9e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ func (r ApiCenterEnvironmentResource) Create() sdk.ResourceFunc {
}

apiCenterEnvironment := environments.Environment{
Name: &model.Identification,
Properties: &apiCenterEnvironmentProps,
Type: &model.Type,
Name: pointer.To(model.Identification),
Properties: pointer.To(apiCenterEnvironmentProps),
Type: pointer.To(model.Type),
}

if _, err = client.CreateOrUpdate(ctx, id, apiCenterEnvironment); err != nil {
Expand Down

0 comments on commit 66dfc9e

Please sign in to comment.