Merge pull request #39711 from alankrita/fix-rest-eauth

Fix error in Saltstack's rest auth "Authentication module threw 'status' "
This commit is contained in:
Mike Place 2017-02-28 08:56:08 -07:00 committed by GitHub
commit d39b679d82

View file

@ -58,7 +58,8 @@ def auth(username, password):
# Post to the API endpoint. If 200 is returned then the result will be the ACLs
# for this user
result = salt.utils.http.query(url, method='POST', data=data)
result = salt.utils.http.query(url, method='POST', data=data, status=True,
decode=True)
if result['status'] == 200:
log.debug('eauth REST call returned 200: {0}'.format(result))
if result['dict'] is not None: