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

Move VolumeManager to context manager #2473

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

schaefi
Copy link
Collaborator

@schaefi schaefi commented Feb 19, 2024

Change the VolumeManager Factory to be a context manager. All code using VolumeManager was
updated to the following with statement:

with VolumeManager(...).new as volume_manager:
    volume_manager.some_member()

This is related to Issue #2412

@schaefi schaefi requested a review from dcermak February 19, 2024 16:56
@schaefi schaefi self-assigned this Feb 19, 2024
@schaefi
Copy link
Collaborator Author

schaefi commented Feb 19, 2024

I want to run this through the Staging pipeline

@schaefi schaefi force-pushed the volume_manager_to_context_manager branch from df6b618 to 5bc4be3 Compare February 20, 2024 08:14
@schaefi
Copy link
Collaborator Author

schaefi commented Feb 20, 2024

Submitting a Staging build...

kiwi/volume_manager/base.py Outdated Show resolved Hide resolved
kiwi/volume_manager/lvm.py Outdated Show resolved Hide resolved
@schaefi schaefi force-pushed the volume_manager_to_context_manager branch 3 times, most recently from 0d0cf11 to e20f216 Compare February 20, 2024 14:07
kiwi/volume_manager/base.py Outdated Show resolved Hide resolved
Change the VolumeManager Factory to be a context manager.
All code using VolumeManager was updated to the following
with statement:

    with VolumeManager(...).new as volume_manager:
        volume_manager.some_member()

This is related to Issue #2412
@schaefi schaefi force-pushed the volume_manager_to_context_manager branch from 1de9cba to a39a19b Compare February 21, 2024 08:40
@schaefi schaefi merged commit e5a9e17 into main Feb 21, 2024
15 checks passed
@schaefi schaefi deleted the volume_manager_to_context_manager branch February 21, 2024 09:10
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