mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Fix multiple filter options logic for podman volume ls
Fixes a bug where `podman volume ls` with multiple `label` filters would return volumes that matched *any* of the filters, not *all* of them. Adapts generating volume filter functions to be more in line with how it is done for containers and pods. Fixes: #19219 Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
@ -16,6 +16,11 @@ flag. Use the **--quiet** flag to print only the volume names.
|
||||
|
||||
#### **--filter**, **-f**=*filter*
|
||||
|
||||
Filter what volumes are shown in the output.
|
||||
Multiple filters can be given with multiple uses of the --filter flag.
|
||||
Filters with the same key work inclusive, with the only exception being `label`
|
||||
which is exclusive. Filters with different keys always work exclusive.
|
||||
|
||||
Volumes can be filtered by the following attributes:
|
||||
|
||||
| **Filter** | **Description** |
|
||||
|
Reference in New Issue
Block a user