Skip to content

Commit

Permalink
cleanup spot instance attribute setting
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Dec 1, 2015
1 parent 50bb0e6 commit be07e4c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions builtin/providers/aws/resource_aws_spot_instance_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be07e4c

Please sign in to comment.