You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/datasource/http/test-fixtures/invalid_method.pkr.hcl

27 lines
420 B

source "null" "example" {
communicator = "none"
}
data "http" "basic" {
url = "https://www.packer.io/"
method = "NONEEXISTING"
}
locals {
url = "${data.http.basic.url}"
body = "${data.http.basic.body}" != ""
}
build {
name = "mybuild"
sources = [
"source.null.example"
]
provisioner "shell-local" {
inline = [
"echo url is ${local.url}",
"echo body is ${local.body}"
]
}
}