From d9aa760459adf4da6e0017e689e58015f697e583 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Thu, 12 Sep 2024 03:34:55 +0000 Subject: [PATCH] fix: fix `allow_user_auto_stop` typo --- docs/resources/template.md | 2 +- internal/provider/template_resource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/template.md b/docs/resources/template.md index 92d9fc7..51f72e8 100644 --- a/docs/resources/template.md +++ b/docs/resources/template.md @@ -71,7 +71,7 @@ resource "coderd_template" "ubuntu-main" { - `acl` (Attributes) (Enterprise) Access control list for the template. If null, ACL policies will not be added, removed, or read by Terraform. (see [below for nested schema](#nestedatt--acl)) - `activity_bump_ms` (Number) The activity bump duration for all workspaces created from this template, in milliseconds. Defaults to one hour. - `allow_user_auto_start` (Boolean) (Enterprise) Whether users can auto-start workspaces created from this template. Defaults to true. -- `allow_user_auto_stop` (Boolean) (Enterprise) Whether users can auto-start workspaces created from this template. Defaults to true. +- `allow_user_auto_stop` (Boolean) (Enterprise) Whether users can auto-stop workspaces created from this template. Defaults to true. - `allow_user_cancel_workspace_jobs` (Boolean) Whether users can cancel in-progress workspace jobs using this template. Defaults to true. - `auto_start_permitted_days_of_week` (Set of String) (Enterprise) List of days of the week in which autostart is allowed to happen, for all workspaces created from this template. Defaults to all days. If no days are specified, autostart is not allowed. - `auto_stop_requirement` (Attributes) (Enterprise) The auto-stop requirement for all workspaces created from this template. (see [below for nested schema](#nestedatt--auto_stop_requirement)) diff --git a/internal/provider/template_resource.go b/internal/provider/template_resource.go index 86cb1bb..807b026 100644 --- a/internal/provider/template_resource.go +++ b/internal/provider/template_resource.go @@ -339,7 +339,7 @@ func (r *TemplateResource) Schema(ctx context.Context, req resource.SchemaReques Default: booldefault.StaticBool(true), }, "allow_user_auto_stop": schema.BoolAttribute{ - MarkdownDescription: "(Enterprise) Whether users can auto-start workspaces created from this template. Defaults to true.", + MarkdownDescription: "(Enterprise) Whether users can auto-stop workspaces created from this template. Defaults to true.", Optional: true, Computed: true, Default: booldefault.StaticBool(true),