We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b251af9 commit 1b1b401Copy full SHA for 1b1b401
scaletest/templates/scaletest-runner/main.tf
@@ -40,12 +40,8 @@ resource "null_resource" "permission_check" {
40
# for the plan, and consequently, updating the template.
41
lifecycle {
42
precondition {
43
- condition = can(regex("^(default|scaletest)$", data.coder_workspace.me.owner))
44
- error_message = "User is not allowed, expected 'scaletest'."
45
- }
46
- precondition {
47
- condition = can(regex("^(default|runner)$", data.coder_workspace.me.name))
48
- error_message = "Workspace name is not allowed, expected 'runner'."
+ condition = can(regex("^(default/default|scaletest/runner)$", "${data.coder_workspace.me.owner}/${data.coder_workspace.me.name}"))
+ error_message = "User and workspace name is not allowed, expected 'scaletest/runner'."
49
}
50
51
0 commit comments