From c0f65ba14b82b3b42ee3464b97c8b2e9ce2cc77d Mon Sep 17 00:00:00 2001 From: David Dollar Date: Tue, 19 Jul 2016 10:35:31 -0400 Subject: [PATCH] only set the parameters if their labels are not blank --- api/models/release.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/models/release.go b/api/models/release.go index fb5c288b02..b036d2a432 100644 --- a/api/models/release.go +++ b/api/models/release.go @@ -179,10 +179,10 @@ func (r *Release) Promote() error { for _, entry := range manifest { entryName := UpperName(entry.Name) for _, option := range healthOptions { - val := entry.Label(fmt.Sprintf("convox.health.%s", option)) - param := fmt.Sprintf("%sHealth%s", entryName, strings.Title(option)) - fmt.Printf("val %s param %s", val, param) - app.Parameters[param] = val + if val := entry.Label(fmt.Sprintf("convox.health.%s", option)); val != "" { + param := fmt.Sprintf("%sHealth%s", entryName, strings.Title(option)) + app.Parameters[param] = val + } } // set all of WebCount=1, WebCpu=0, WebMemory=256 and WebFormation=1,0,256 style parameters