Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ExceptionHandlingInstaller #175

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

engechas
Copy link
Contributor

@engechas engechas commented Apr 5, 2022

Description

Adds ExceptionHandlingInstaller as decorator for top-level exception handling

Signed-off-by: Chase Engelbrecht [email protected]

Issues Resolved

#134

Check List

  • New functionality includes testing
    • All unit and integration tests pass
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Chase Engelbrecht <[email protected]>
try:
return self.installer.install(host, binaries, all_node_ips)
except Exception as e:
raise InstallError("Installing node on host \"{}\" failed".format(host), e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think f-strings are the standard now for Python string formatting. Sorry if I missed this on other PRs

raise InstallError(f"Installing node on host \"{host}\" failed", e)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know that. Will fix the instances here then swap out the rest of the occurrences in a followup PR

Signed-off-by: Chase Engelbrecht <[email protected]>
@engechas engechas merged commit 32b2a68 into opensearch-project:main Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants