providers/aws: fix for latest ResourceBuilder API

This commit is contained in:
Mitchell Hashimoto 2014-07-01 16:22:24 -07:00 committed by Jack Pearkes
parent a2815e50eb
commit 5d25de017c
2 changed files with 11 additions and 11 deletions

View File

@ -85,12 +85,12 @@ func resource_aws_elb_diff(
meta interface{}) (*terraform.ResourceDiff, error) {
b := &diff.ResourceBuilder{
CreateComputedAttrs: []string{
"dns_name",
Attrs: map[string]diff.AttrType{
"name": diff.AttrTypeCreate,
},
RequiresNewAttrs: []string{
"name",
ComputedAttrs: []string{
"dns_name",
},
}

View File

@ -104,18 +104,18 @@ func resource_aws_instance_diff(
c *terraform.ResourceConfig,
meta interface{}) (*terraform.ResourceDiff, error) {
b := &diff.ResourceBuilder{
CreateComputedAttrs: []string{
Attrs: map[string]diff.AttrType{
"ami": diff.AttrTypeCreate,
"availability_zone": diff.AttrTypeCreate,
"instance_type": diff.AttrTypeCreate,
},
ComputedAttrs: []string{
"public_dns",
"public_ip",
"private_dns",
"private_ip",
},
RequiresNewAttrs: []string{
"ami",
"availability_zone",
"instance_type",
},
}
return b.Diff(s, c)