Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diya-dhan committed Jun 18, 2024
1 parent 721de98 commit fc673d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/resource_subaccount_entitlement.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (rs *subaccountEntitlementResource) Delete(ctx context.Context, req resourc

// No error returned even if operation failed
if entitlement.Assignment.EntityState == cis_entitlements.StateProcessingFailed {
return *entitlement, entitlement.Assignment.EntityState, fmt.Errorf(entitlement.Assignment.StateMessage)
return *entitlement, entitlement.Assignment.EntityState, errors.New(entitlement.Assignment.StateMessage)
}

return entitlement, cis_entitlements.StateProcessing, nil
Expand Down

0 comments on commit fc673d2

Please sign in to comment.