mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
commit
d39b679d82
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue