diff --git a/managed/resource_api_key.go b/managed/resource_api_key.go index 3c80658..cd31ed7 100644 --- a/managed/resource_api_key.go +++ b/managed/resource_api_key.go @@ -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