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

Convert Blade*Connection* classes to context managed classes #24

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

erl-hpe
Copy link
Collaborator

@erl-hpe erl-hpe commented Jul 2, 2024

Summary and Scope

Convert BladeConnection, BladeConnectionSet, BladeSSHConnection and BladeSSHConnectionSet classes into context managed classes -- add enter() and exit() methods -- so that the provider level operations that return them can be used inside or outside of a 'with' clause. This will allow the Cluster layer to implement node context managed classes of its own that use these connections and connection sets as underlying mechanisms. Without this, it was not possible to properly separate functionality between the API layers.

This is a backward compatible change.

@erl-hpe erl-hpe merged commit f50a959 into main Jul 2, 2024
14 checks passed
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.

1 participant