Cannot deregister volume while its id is a prefix of other volume id. #12005
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/storage
type/bug
Milestone
Nomad version
1.2.5
Operating system and Environment details
Arch linux
Issue
I try to deregister volume which id is a prefix of other volume. But then I got an error
It's non-critical and definitely a corner case as I can deregister registry-volume1 and then registry-volume.
Reproduction steps
Register 2 volumes registry-volume and registry-volume1. Then try to deregister registry-volume.
Expected Result
Volume matched by exact id should be deregistered.
Actual Result
There is an error that multiple prefixes was matched.
The text was updated successfully, but these errors were encountered: