helper/diff: don't output ID anymore since Terraform does it

This commit is contained in:
Mitchell Hashimoto 2014-07-08 16:59:58 -07:00
parent 251790f05a
commit b700eee3e0
2 changed files with 0 additions and 11 deletions

View File

@ -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

View File

@ -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>"
` `