Merge pull request #3152 from dwradcliffe/read_source_dest_check_state

provider/aws: read instance source_dest_check and save to state
This commit is contained in:
Paul Hinze 2015-09-16 10:29:37 -05:00
commit 96317a6a38
1 changed files with 3 additions and 0 deletions

View File

@ -477,6 +477,9 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("subnet_id", instance.SubnetId)
}
d.Set("ebs_optimized", instance.EbsOptimized)
if instance.SubnetId != nil && *instance.SubnetId != "" {
d.Set("source_dest_check", instance.SourceDestCheck)
}
if instance.Monitoring != nil && instance.Monitoring.State != nil {
monitoringState := *instance.Monitoring.State