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

Avoid some tracebacks during populate #1306

Merged
merged 5 commits into from
Oct 29, 2024

Conversation

vojtechtrefny
Copy link
Member

No description provided.

dwlehman and others added 5 commits October 11, 2024 11:49
There is a new flag to control this behavior: allow_inconsistent_config.
When False, DuplicateUUIDError will be raised when trying to add any
subsequent device whose UUID matches one already in the tree. When True,
the duplicate UUIDs will be allowed to coexist until/unless a call to
DeviceTree.get_device_by_uuid is made with the duplicate UUID as its
argument. In this case, DuplicateUUIDError will be raised.
The goal here is to absolutely minimize tracebacks that occur when
populating the devicetree. There are mechanisms in place that will limit
the supported functionality for managing such devices, but there will be
no tracebacks until/unless the user tries to manage them in ways that
are precluded by the detection issues previously encountered.
@vojtechtrefny vojtechtrefny marked this pull request as draft October 18, 2024 14:21
@vojtechtrefny vojtechtrefny marked this pull request as ready for review October 24, 2024 08:44
@vojtechtrefny vojtechtrefny merged commit cd86ced into storaged-project:main Oct 29, 2024
15 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