providers/aws: use merged reosource state for associate_public_ip

cc/ @vertis
This commit is contained in:
Jack Pearkes 2014-07-29 10:18:48 -04:00
parent fa13a12a6e
commit 86c7aeb8a6
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ func resource_aws_instance_create(
} }
associatePublicIPAddress := false associatePublicIPAddress := false
if attr, ok := d.Attributes["associate_public_ip_address"]; ok { if rs.Attributes["associate_public_ip_address"] == "true" {
associatePublicIPAddress = attr.New != "" && attr.New != "false" associatePublicIPAddress = true
} }
// Build the creation struct // Build the creation struct