Merge pull request #1003 from hashicorp/b-aws-instance-source-dest-check
providers/aws: fix aws_instance source_dest_check
This commit is contained in:
commit
39d28a9612
|
@ -491,9 +491,9 @@ func resourceAwsInstanceUpdate(d *schema.ResourceData, meta interface{}) error {
|
||||||
modify := false
|
modify := false
|
||||||
opts := new(ec2.ModifyInstance)
|
opts := new(ec2.ModifyInstance)
|
||||||
|
|
||||||
if v, ok := d.GetOk("source_dest_check"); ok {
|
if d.HasChange("source_dest_check") {
|
||||||
opts.SourceDestCheck = v.(bool)
|
|
||||||
opts.SetSourceDestCheck = true
|
opts.SetSourceDestCheck = true
|
||||||
|
opts.SourceDestCheck = d.Get("source_dest_check").(bool)
|
||||||
modify = true
|
modify = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue