From b700eee3e0eeea4a469d022c7913f81cab35aedd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 8 Jul 2014 16:59:58 -0700 Subject: [PATCH] helper/diff: don't output ID anymore since Terraform does it --- helper/diff/resource_builder.go | 7 ------- helper/diff/resource_builder_test.go | 4 ---- 2 files changed, 11 deletions(-) diff --git a/helper/diff/resource_builder.go b/helper/diff/resource_builder.go index 69a0e93ee3..7fe565ac67 100644 --- a/helper/diff/resource_builder.go +++ b/helper/diff/resource_builder.go @@ -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 diff --git a/helper/diff/resource_builder_test.go b/helper/diff/resource_builder_test.go index 1ac408b510..d62f674a37 100644 --- a/helper/diff/resource_builder_test.go +++ b/helper/diff/resource_builder_test.go @@ -202,22 +202,18 @@ const testRBComplexDiff = `UPDATE const testRBNewDiff = `UPDATE IN foo: "" => "bar" - OUT id: "" => "" OUT private_ip: "" => "" ` const testRBRequiresNewDiff = `CREATE IN ami: "foo" => "bar" (forces new resource) - OUT id: "1" => "" OUT private_ip: "127.0.0.1" => "" ` const testRBUnknownDiff = `UPDATE IN foo: "" => "${var.unknown}" - OUT id: "" => "" ` const testRBVarsDiff = `UPDATE IN foo: "" => "bar" - OUT id: "" => "" `