Skip to content

Commit

Permalink
Format code to follow guidance
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaweitao001 committed Nov 7, 2024
1 parent 927c7f4 commit c076a2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/dynatrace/dynatrace_monitors_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,14 @@ func (r MonitorsResource) Create() sdk.ResourceFunc {
return sdk.ResourceFunc{
Timeout: 30 * time.Minute,
Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error {
client := metadata.Client.Dynatrace.MonitorsClient
subscriptionId := metadata.Client.Account.SubscriptionId

var model MonitorsResourceModel
if err := metadata.Decode(&model); err != nil {
return err
}

client := metadata.Client.Dynatrace.MonitorsClient
subscriptionId := metadata.Client.Account.SubscriptionId
id := monitors.NewMonitorID(subscriptionId, model.ResourceGroup, model.Name)

existing, err := client.Get(ctx, id)
Expand Down

0 comments on commit c076a2d

Please sign in to comment.