From e3c5a8c6be1ce2f19eeab42b9359e83e84db0fbd Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Mon, 15 Aug 2016 12:33:17 -0700 Subject: [PATCH] Changing prefix of un-named ports --- job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/job.go b/job.go index a15fbf2..23eef49 100644 --- a/job.go +++ b/job.go @@ -169,14 +169,14 @@ func (a *Job) AddNamedPorts(names ...string) *Job { } // Adds a request for a number of ports to the job configuration. The names chosen for these ports -// will be org.apache.aurora.portX, where X is the current port count for the job configuration +// will be org.apache.aurora.port.X, where X is the current port count for the job configuration // starting at 0. These are random ports as it's not currently possible to request // specific ports using Aurora. func (a *Job) AddPorts(num int) *Job { start := a.portCount a.portCount += num for i := start; i < a.portCount; i++ { - portName := "gorealis.port" + strconv.Itoa(i) + portName := "org.apache.aurora.port." + strconv.Itoa(i) a.jobConfig.TaskConfig.Resources[&aurora.Resource{NamedPort: &portName}] = true }