Skip to content

Commit

Permalink
wrap error response
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Nov 29, 2024
1 parent 3ab9a1d commit b92bc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def get_service_store_secret(service, key=None, vault_url=VAULT_URL, role_id=Non
if response.status_code == 200:
result = response.json()["data"]
return result, 200
return response.text, response.status_code
return {"error": response.text}, response.status_code


def delete_service_store_secret(service, key=None, vault_url=VAULT_URL, role_id=None, secret_id=None, token=None):
Expand Down

0 comments on commit b92bc9f

Please sign in to comment.