mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Merge pull request #8040 from rooftopcellist/be_more_accepting
Accept all responses <300 from Insights API Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
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