Closed rebeccaskinner closed 8 years ago
what's the error?
Minimal reproduction:
param "bar" {
default = "bar"
}
task.query "foo" {
query = "echo foo"
}
task.query "should-install-go" {
interpreter = "/bin/bash"
query = "[[ '{{param `bar`}}' == '{{lookup `task.query.foo.checkstatus.stdout`}}']]"
## works this way
# query = "[['{{lookup `task.query.foo.checkstatus.stdout`}}' == '{{param `bar`}}']]"
}
Output:
timestamp="2016-09-19T08:06:47-05:00" level="WARN" msg="setting session-local token" token="91dc0074-bdfa-43b0-b0aa-bef4636378ff"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="serving" addr=":47740" component="rpc"
timestamp="2016-09-19T08:06:47-05:00" level="WARN" msg="skipping module verfiction" component="client"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="planning" component="client" file="bad.hcl"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="resolving dependencies" component="rpc" function="ResolveDependencies" runID="b3d10f39-ddb7-4bee-891b-c894f51be966"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="loading resources" component="rpc" function="SetResources" runID="b3d10f39-ddb7-4bee-891b-c894f51be966"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="no check_flags specified for interpeter, skipping syntax validation"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="got status" component="client" file="bad.hcl" id="root/param.bar" run="STARTED" stage="PLAN"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="got status" component="client" file="bad.hcl" id="root/task.query.foo" run="STARTED" stage="PLAN"
timestamp="2016-09-19T08:06:47-05:00" level="INFO" msg="got status" component="client" file="bad.hcl" id="root/task.query.should-install-go" run="STARTED" stage="PLAN"
pipeline returned Right node is unresolvable
timestamp="2016-09-19T08:06:47-05:00" level="ERROR" msg="planning failed" component="rpc" error="1 error(s) occurred:\n\n* root/task.query.should-install-go: node is unresolvable" function="executor.Plan" location="bad.hcl" runID="b3d10f39-ddb7-4bee-891b-c894f51be966"
timestamp="2016-09-19T08:06:47-05:00" level="FATAL" msg="could not get responses" component="client" error="error getting status response: rpc error: code = 2 desc = planning bad.hcl: 1 error(s) occurred:\n\n* root/task.query.should-install-go: node is unresolvable" file="bad.hcl"
Fixed in #265
Fixed in #288
This is broken...
but this isnt...
in