Skip to content

Commit

Permalink
[CLOUDGA-25821] Stop API key creation if wrong unit provided (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhupendray-yb authored Jan 29, 2025
1 parent b8d5c8d commit b3f3ac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion managed/resource_api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ func (r resourceApiKey) Create(ctx context.Context, req tfsdk.CreateResourceRequ
if !validTimeUnit {
resp.Diagnostics.AddError(
"Invalid time unit for API Key creation",
"Available options are Hours, Days, and Months.",
"Available options are: Hours, Days, and Months.",
)
return
}

roleName := plan.RoleName.Value
Expand Down

0 comments on commit b3f3ac1

Please sign in to comment.