This commit is contained in:
Dis 2023-08-30 16:23:35 -04:00 committed by GitHub
parent 1c10c5cf02
commit c20e3efc35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -433,6 +433,7 @@ class API(object):
try:
LOG.info("Trying to login to %s/%s as %s" % (server_url, path, username))
response = self.send_request(server_url, path, method="post", timeout=10, headers=headers, data=json.dumps(auth_data))
if response.status_code == 200:
return response.json()
else: