Skip to content

Commit 533c613

Browse files
committed
fixup tests
1 parent 9995bf5 commit 533c613

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

provider/agent.go

+6-12
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,12 @@ func agentResource() *schema.Resource {
162162
Description: "The path to a file within the workspace containing a message to display to users when they login via SSH. A typical value would be `\"/etc/motd\"`.",
163163
},
164164
"startup_script_behavior": {
165-
// Note: Our default value is "non-blocking" but we do not set
166-
// it here because we want to be able to differentiate between
167-
// the user setting this or "login_before_ready". For all
168-
// intents and purposes, until deprecation, setting
169-
// "login_before_ready = false" is equivalent to setting
170-
// "startup_script_behavior = blocking".
171-
Type: schema.TypeString,
172-
ForceNew: true,
173-
Optional: true,
174-
Description: "This option sets the behavior of the `startup_script`. When set to `\"blocking\"`, the `startup_script` must exit before the workspace is ready. When set to `\"non-blocking\"`, the `startup_script` may run in the background and the workspace will be ready immediately. Default is `\"non-blocking\"`, although `\"blocking\"` is recommended. This option is an alias for defining a `coder_script` resource with `start_blocks_login` set to `true` (blocking).",
175-
ValidateFunc: validation.StringInSlice([]string{"blocking", "non-blocking"}, false),
176-
ConflictsWith: []string{"login_before_ready"},
165+
Type: schema.TypeString,
166+
Default: "non-blocking",
167+
ForceNew: true,
168+
Optional: true,
169+
Description: "This option sets the behavior of the `startup_script`. When set to `\"blocking\"`, the `startup_script` must exit before the workspace is ready. When set to `\"non-blocking\"`, the `startup_script` may run in the background and the workspace will be ready immediately. Default is `\"non-blocking\"`, although `\"blocking\"` is recommended. This option is an alias for defining a `coder_script` resource with `start_blocks_login` set to `true` (blocking).",
170+
ValidateFunc: validation.StringInSlice([]string{"blocking", "non-blocking"}, false),
177171
},
178172
"metadata": {
179173
Type: schema.TypeList,

0 commit comments

Comments
 (0)