remove status 200 check
This commit is contained in:
		
							parent
							
								
									c48d497fe9
								
							
						
					
					
						commit
						957c2582f6
					
				|  | @ -124,10 +124,6 @@ func (p *Patroni) httpGet(url string) (string, error) { | |||
| 		return "", fmt.Errorf("could not read response: %v", err) | ||||
| 	} | ||||
| 
 | ||||
| 	if response.StatusCode != http.StatusOK { | ||||
| 		return string(bodyBytes), fmt.Errorf("patroni returned '%d'", response.StatusCode) | ||||
| 	} | ||||
| 
 | ||||
| 	return string(bodyBytes), nil | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue