Skip to content

Commit

Permalink
Fix issue with "secrets update" command
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Doan <[email protected]>
  • Loading branch information
doanac committed Jan 24, 2020
1 parent 0da525f commit f1f51fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/foundries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1f51fb

Please sign in to comment.