mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
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,
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
|
@ -202,22 +202,18 @@ const testRBComplexDiff = `UPDATE
|
||||
|
||||
const testRBNewDiff = `UPDATE
|
||||
IN foo: "" => "bar"
|
||||
OUT id: "" => "<computed>"
|
||||
OUT private_ip: "" => "<computed>"
|
||||
`
|
||||
|
||||
const testRBRequiresNewDiff = `CREATE
|
||||
IN ami: "foo" => "bar" (forces new resource)
|
||||
OUT id: "1" => "<computed>"
|
||||
OUT private_ip: "127.0.0.1" => "<computed>"
|
||||
`
|
||||
|
||||
const testRBUnknownDiff = `UPDATE
|
||||
IN foo: "" => "${var.unknown}"
|
||||
OUT id: "" => "<computed>"
|
||||
`
|
||||
|
||||
const testRBVarsDiff = `UPDATE
|
||||
IN foo: "" => "bar"
|
||||
OUT id: "" => "<computed>"
|
||||
`
|
||||
|
Loading…
Reference in New Issue
Block a user