Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
resolve #118
Browse files Browse the repository at this point in the history
  • Loading branch information
jdef committed Jan 8, 2015
1 parent 604cdb6 commit cbf2504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scheduler/pod_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func rangeResource(name string, ports []uint64) *mesos.Resource {
func NewRanges(ports []uint64) *mesos.Value_Ranges {
r := make([]*mesos.Value_Range, 0)
for _, port := range ports {
r = append(r, &mesos.Value_Range{Begin: &port, End: &port})
x := proto.Uint64(port)
r = append(r, &mesos.Value_Range{Begin: x, End: x})
}
return &mesos.Value_Ranges{Range: r}
}
Expand Down

0 comments on commit cbf2504

Please sign in to comment.