use provisioner attr defined in schema

This commit is contained in:
James Bardin 2018-05-29 15:44:24 -04:00 committed by Martin Atkins
parent 41dde5fafc
commit d9239e1f48
2 changed files with 2 additions and 2 deletions

View File

@ -5183,7 +5183,7 @@ func TestContext2Apply_provisionerDestroyModule(t *testing.T) {
p.ApplyFn = testApplyFn
p.DiffFn = testDiffFn
pr.ApplyFn = func(rs *InstanceState, c *ResourceConfig) error {
val, ok := c.Config["foo"]
val, ok := c.Config["command"]
if !ok || val != "value" {
t.Fatalf("bad value for foo: %v %#v", val, c)
}

View File

@ -4,7 +4,7 @@ resource "aws_instance" "foo" {
foo = "bar"
provisioner "shell" {
foo = "${var.key}"
command = "${var.key}"
when = "destroy"
}
}