Skip to content

Commit

Permalink
change expected code to 200, since DNC returns 200
Browse files Browse the repository at this point in the history
  • Loading branch information
smittal22 committed Dec 4, 2023
1 parent 9a74d51 commit 82f3887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cns/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func sendRegisterNodeRequest(httpc *http.Client, httpRestService cns.HTTPService
}
defer response.Body.Close()

if response.StatusCode != http.StatusCreated {
if response.StatusCode != http.StatusOK {
err = fmt.Errorf("[Azure CNS] Failed to register node, DNC replied with http status code %s", strconv.Itoa(response.StatusCode))
logger.Errorf(err.Error())
return errors.Wrap(err, "failed to sendRegisterNodeRequest")
Expand Down

0 comments on commit 82f3887

Please sign in to comment.