Skip to content

Commit

Permalink
WIP: Skip http error response for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 30, 2024
1 parent 265a2b4 commit 755bb58
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ def _issue_vault_token(
response = requests.post(login_url, data=payload, timeout=10)
response.raise_for_status()
except requests.exceptions.HTTPError as http_error:
error_message = str(http_error)
if http_error.response is not None:
error_message += f"%0A{http_error.response.text}"
print("*******************")
print(error_message)
print("*******************")
_set_error_message("Vault login error", error_message)
_set_error_message("Vault login error", str(http_error))
raise VoscaError from http_error

vault_token: str = response.json()["auth"]["client_token"]
Expand Down

0 comments on commit 755bb58

Please sign in to comment.