helper/diff: don't output ID anymore since Terraform does it
This commit is contained in:
parent
251790f05a
commit
b700eee3e0
|
@ -108,13 +108,6 @@ func (b *ResourceBuilder) Diff(
|
||||||
Type: terraform.DiffAttrOutput,
|
Type: terraform.DiffAttrOutput,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The ID will change
|
|
||||||
attrs["id"] = &terraform.ResourceAttrDiff{
|
|
||||||
Old: s.ID,
|
|
||||||
NewComputed: true,
|
|
||||||
Type: terraform.DiffAttrOutput,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build our resulting diff if we had attributes change
|
// Build our resulting diff if we had attributes change
|
||||||
|
|
|
@ -202,22 +202,18 @@ const testRBComplexDiff = `UPDATE
|
||||||
|
|
||||||
const testRBNewDiff = `UPDATE
|
const testRBNewDiff = `UPDATE
|
||||||
IN foo: "" => "bar"
|
IN foo: "" => "bar"
|
||||||
OUT id: "" => "<computed>"
|
|
||||||
OUT private_ip: "" => "<computed>"
|
OUT private_ip: "" => "<computed>"
|
||||||
`
|
`
|
||||||
|
|
||||||
const testRBRequiresNewDiff = `CREATE
|
const testRBRequiresNewDiff = `CREATE
|
||||||
IN ami: "foo" => "bar" (forces new resource)
|
IN ami: "foo" => "bar" (forces new resource)
|
||||||
OUT id: "1" => "<computed>"
|
|
||||||
OUT private_ip: "127.0.0.1" => "<computed>"
|
OUT private_ip: "127.0.0.1" => "<computed>"
|
||||||
`
|
`
|
||||||
|
|
||||||
const testRBUnknownDiff = `UPDATE
|
const testRBUnknownDiff = `UPDATE
|
||||||
IN foo: "" => "${var.unknown}"
|
IN foo: "" => "${var.unknown}"
|
||||||
OUT id: "" => "<computed>"
|
|
||||||
`
|
`
|
||||||
|
|
||||||
const testRBVarsDiff = `UPDATE
|
const testRBVarsDiff = `UPDATE
|
||||||
IN foo: "" => "bar"
|
IN foo: "" => "bar"
|
||||||
OUT id: "" => "<computed>"
|
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue