summaryrefslogtreecommitdiffstats
path: root/awx/main/credential_plugins/aim.py
diff options
context:
space:
mode:
Diffstat (limited to 'awx/main/credential_plugins/aim.py')
-rw-r--r--awx/main/credential_plugins/aim.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/awx/main/credential_plugins/aim.py b/awx/main/credential_plugins/aim.py
index 23036efda1..7c99665bf0 100644
--- a/awx/main/credential_plugins/aim.py
+++ b/awx/main/credential_plugins/aim.py
@@ -1,4 +1,4 @@
-from .plugin import CredentialPlugin, CertFiles
+from .plugin import CredentialPlugin, CertFiles, raise_for_status
from urllib.parse import quote, urlencode, urljoin
@@ -82,8 +82,9 @@ def aim_backend(**kwargs):
timeout=30,
cert=cert,
verify=verify,
+ allow_redirects=False,
)
- res.raise_for_status()
+ raise_for_status(res)
return res.json()['Content']