Change the RaidDevice, LuksDevice and IntegrityDevice classes
to context manager:
with RaidDevice(...) as raid:
raid.some_member()
with LuksDevice(...) as luks:
luks.some_member()
with IntegrityDevice(...) as integrity:
integrity.some_member()
In the context of the disk builder an ExitStack is used to
handle the new context manager based classes
This is related to Issue #2412
|
||
|---|---|---|
| .. | ||
| subformat | ||
| __init__.py | ||
| clone_device_test.py | ||
| device_provider_test.py | ||
| disk_test.py | ||
| integrity_device_test.py | ||
| loop_device_test.py | ||
| luks_device_test.py | ||
| mapped_device_test.py | ||
| raid_device_test.py | ||
| setup_test.py | ||