From cbf25046f1b1541b51cd47c5a7d4710c414ce0d2 Mon Sep 17 00:00:00 2001 From: James DeFelice Date: Thu, 8 Jan 2015 14:40:52 +0000 Subject: [PATCH] resolve #118 --- scheduler/pod_task.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scheduler/pod_task.go b/scheduler/pod_task.go index e5f74a40..15199cfa 100644 --- a/scheduler/pod_task.go +++ b/scheduler/pod_task.go @@ -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} }