mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert test for resp status failure
This commit is contained in:
parent
ceef4eacdc
commit
c1a5e4e122
1 changed files with 2 additions and 6 deletions
|
@ -1586,12 +1586,8 @@ class ApiRequest:
|
|||
def post(self, url, data):
|
||||
post_data = dict(**self.auth_data, **data)
|
||||
resp = self.session.post(f"{self.api_uri}/run", data=post_data).json()
|
||||
if resp["status"] != 500:
|
||||
minion = next(iter(resp["return"][0]))
|
||||
return resp["return"][0][minion]
|
||||
else:
|
||||
resp.update({"args": []})
|
||||
return resp
|
||||
minion = next(iter(resp["return"][0]))
|
||||
return resp["return"][0][minion]
|
||||
|
||||
def __enter__(self):
|
||||
self.session.__enter__()
|
||||
|
|
Loading…
Add table
Reference in a new issue