podman icon indicating copy to clipboard operation
podman copied to clipboard

volume rm require exact name

Open zackattackz opened this issue 1 year ago • 13 comments

This commit reverts the behavior of allowing volume removal by partial name in favor of requiring the exact name. It does this by favoring usage of GetVolume over LookupVolume

In the past, issue #3891 was raised to allow partial name matching on podman volume rm, which was fixed by PR #3896. However, it has been determined in issue #23943 that the pros of allowing removal by partial name (less keys to type) are outweighed by the cons (possibility of unintentionally deleting a volume you didn't mean to). So the behavior will be reverted.

Since PR #3896, there has also been PR #4832 and PR #6736, which extended the partial name removal behavior to API endpoints. This commit also makes these endpoints require exact names.

Closes #23943

Does this PR introduce a user-facing change?

Fixed volume removal by partial name in both the CLI and API. The full volume name is now required.

zackattackz avatar Sep 21 '24 05:09 zackattackz