Skip to content

Commit

Permalink
allowing 500 for /verifyApiKey (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockspore authored Dec 23, 2020
1 parent f4a24df commit 87355e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/provision/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (p *provision) verifyRemoteServiceProxy(client *http.Client, printf shared.
res, err = client.Do(req)
if res != nil {
defer res.Body.Close()
if res.StatusCode != http.StatusUnauthorized { // 401 is ok, we didn't use a valid api key
if res.StatusCode != http.StatusUnauthorized && res.StatusCode != http.StatusInternalServerError { // 401 or 500 is ok, either the secret is not there or we didn't use a valid api key
verifyErrors = multierr.Append(verifyErrors, fmt.Errorf("POST request to %q returns %d", verifyAPIKeyURL, res.StatusCode))
}
}
Expand Down

0 comments on commit 87355e0

Please sign in to comment.