cleanup spot instance attribute setting

This commit is contained in:
clint shryock 2015-12-01 15:25:53 -06:00
parent 50bb0e6b4a
commit be07e4c0c9
1 changed files with 2 additions and 6 deletions

View File

@ -195,12 +195,8 @@ func resourceAwsSpotInstanceRequestRead(d *schema.ResourceData, meta interface{}
}
}
if request.State != nil {
d.Set("spot_request_state", *request.State)
}
if request.BlockDurationMinutes != nil {
d.Set("block_duration_minutes", *request.BlockDurationMinutes)
}
d.Set("spot_request_state", request.State)
d.Set("block_duration_minutes", request.BlockDurationMinutes)
d.Set("tags", tagsToMap(request.Tags))
return nil