Skip to content

Commit

Permalink
WIP: final multi-line approach?
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Mar 30, 2024
1 parent 755bb58 commit 0ce69a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vault_oidc_ssh_cert_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ 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 += "\nHTTP error contained the following output:\n"
error_message += http_error.response.text
error_message += "\n"
_set_error_message("Vault login error", str(http_error))
raise VoscaError from http_error

Expand Down

0 comments on commit 0ce69a8

Please sign in to comment.