-
Notifications
You must be signed in to change notification settings - Fork 955
Labels
regressionSomething that used to work but no longer worksSomething that used to work but no longer workss1Bugs that break core workflows. Only humans may set this.Bugs that break core workflows. Only humans may set this.
Description
The following parameter definition was valid with older coder versions but is valid anymore with coder 2.18.1 by coder templates push
data "coder_parameter" "param_name" {
name = "param_name"
type = "list(string)"
default = jsonencode(["1", "2", "3", "4"])
description = "List of ..."
mutable = true
}
Fails with:
evaluate default values of workspace tags: load parameter defaults: failed to evaluate coder_parameter "param_name" default value "jsonencode([\"1\", \"2\", \"3\", \"4\"])": variables.tf:121,18-102: Function calls not allowed; Functions may not be called here.
Even if I remove the jsonencode, it still fails with:
evaluate default values of workspace tags: load parameter defaults: failed to marshal coder_parameter "param_name" default value "[\"1\", \"2\", \"3\", \"4\"]" as string: only primitive types are supported - bool, number, and string
Metadata
Metadata
Assignees
Labels
regressionSomething that used to work but no longer worksSomething that used to work but no longer workss1Bugs that break core workflows. Only humans may set this.Bugs that break core workflows. Only humans may set this.