mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Accept all responses <300 from Insights API
This commit is contained in:
@@ -180,7 +180,8 @@ def ship(path):
|
|||||||
auth=(rh_user, rh_password),
|
auth=(rh_user, rh_password),
|
||||||
headers=s.headers,
|
headers=s.headers,
|
||||||
timeout=(31, 31))
|
timeout=(31, 31))
|
||||||
if response.status_code != 202:
|
# Accept 2XX status_codes
|
||||||
|
if response.status_code >= 300:
|
||||||
return logger.exception('Upload failed with status {}, {}'.format(response.status_code,
|
return logger.exception('Upload failed with status {}, {}'.format(response.status_code,
|
||||||
response.text))
|
response.text))
|
||||||
run_now = now()
|
run_now = now()
|
||||||
|
|||||||
Reference in New Issue
Block a user