From 671fe5c051ebfdb7217dedc049c4acc7e8e6497e Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Wed, 7 Sep 2016 16:32:44 -0700 Subject: [PATCH] API changes for service rollback and failure threshold Signed-off-by: Aaron Lehmann --- service_update.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service_update.go b/service_update.go index c5d07e8394..8e03f7f483 100644 --- a/service_update.go +++ b/service_update.go @@ -22,6 +22,10 @@ func (cli *Client) ServiceUpdate(ctx context.Context, serviceID string, version } } + if options.RegistryAuthFrom != "" { + query.Set("registryAuthFrom", options.RegistryAuthFrom) + } + query.Set("version", strconv.FormatUint(version.Index, 10)) resp, err := cli.post(ctx, "/services/"+serviceID+"/update", query, service, headers)