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

Feature/cleanup interface #181

Merged
merged 14 commits into from
Dec 17, 2024
Merged

Conversation

hthiery
Copy link
Contributor

@hthiery hthiery commented Dec 17, 2024

No description provided.

Signed-off-by: Heiko Thiery <[email protected]>
This empty methods now are called from Ipmi class.

From Ipmi() class also the establish and close Session() methods are
called.

Signed-off-by: Heiko Thiery <[email protected]>
Add new args for __init__ and adopt create_connection() accordingly

Signed-off-by: Heiko Thiery <[email protected]>
Add __enter__() and __exit__() methods to support context manager.

Signed-off-by: Heiko Thiery <[email protected]>
Move device specific stuff to open() and close() methods.

Signed-off-by: Heiko Thiery <[email protected]>
@coveralls
Copy link

coveralls commented Dec 17, 2024

Coverage Status

coverage: 69.833% (+0.2%) from 69.588%
when pulling cf7b27f on hthiery:feature/cleanup-interface
into 7f28de1 on kontron:master.

Use the open() and close() methods instead of session establish() and
close().

Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Heiko Thiery <[email protected]>
We need always a session. So we create if it is not passed on __init__.
Also a session needs an interface, set it!

Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Heiko Thiery <[email protected]>
Signed-off-by: Heiko Thiery <[email protected]>
@hthiery hthiery force-pushed the feature/cleanup-interface branch from 3c76fc8 to cf7b27f Compare December 17, 2024 09:42
@hthiery hthiery merged commit f0df31e into kontron:master Dec 17, 2024
15 of 16 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.

2 participants