From f1f51fb19074b6751d73e50383a2b6f46e92a38c Mon Sep 17 00:00:00 2001 From: Andy Doan Date: Fri, 24 Jan 2020 09:51:01 -0600 Subject: [PATCH] Fix issue with "secrets update" command Signed-off-by: Andy Doan --- client/foundries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/foundries.go b/client/foundries.go index e2f010c9..c36bd167 100644 --- a/client/foundries.go +++ b/client/foundries.go @@ -198,7 +198,7 @@ func (a *Api) Patch(url string, data []byte) (*[]byte, error) { return nil, err } - if res.StatusCode != 202 || res.StatusCode != 200 { + if res.StatusCode != 202 && res.StatusCode != 200 { return nil, fmt.Errorf("Unable to PATCH '%s': HTTP_%d\n=%s", url, res.StatusCode, body) } return &body, nil