Skip to content

Commit

Permalink
added return statement in other resources
Browse files Browse the repository at this point in the history
  • Loading branch information
diya-dhan committed Oct 15, 2024
1 parent 8b51322 commit 15849e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/provider/resource_subaccount_environment_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func (rs *subaccountEnvironmentInstanceResource) Create(ctx context.Context, req
updatedRes, err := createStateConf.WaitForStateContext(ctx)
if err != nil {
resp.Diagnostics.AddError("API Error Creating Resource Environment Instance (Subaccount)", fmt.Sprintf("%s", err))
return
}

plan, diags = subaccountEnvironmentInstanceValueFrom(ctx, updatedRes.(provisioning.EnvironmentInstanceResponseObject))
Expand Down Expand Up @@ -339,6 +340,7 @@ func (rs *subaccountEnvironmentInstanceResource) Update(ctx context.Context, req
updatedRes, err := updateStateConf.WaitForStateContext(ctx)
if err != nil {
resp.Diagnostics.AddError("API Error Updating Resource Environment Instance (Subaccount)", fmt.Sprintf("%s", err))
return
}

state, diags := subaccountEnvironmentInstanceValueFrom(ctx, updatedRes.(provisioning.EnvironmentInstanceResponseObject))
Expand Down

0 comments on commit 15849e4

Please sign in to comment.