providers/aws: use merged reosource state for associate_public_ip
cc/ @vertis
This commit is contained in:
parent
fa13a12a6e
commit
86c7aeb8a6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue