mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
Fix issue related to http status code in vault
the status code for success should be between 200 to 300. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
37c4e3447d
commit
8b70e68f65
@ -285,7 +285,7 @@ func (kms *VaultKMS) getAccessToken() (string, error) {
|
||||
}
|
||||
|
||||
func (kms *VaultKMS) processError(resp *http.Response, action string) error {
|
||||
if resp.StatusCode >= 200 || resp.StatusCode < 300 {
|
||||
if resp.StatusCode >= 200 && resp.StatusCode < 300 {
|
||||
return nil
|
||||
}
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
|
Loading…
Reference in New Issue
Block a user