mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
adding regex support to the ancestor ps filter function
Signed-off-by: Leonardo Rossetti <lrossett@redhat.com>
This commit is contained in:
@ -96,8 +96,8 @@ func GenerateContainerFilterFuncs(filter string, filterValues []string, r *libpo
|
||||
}
|
||||
|
||||
if (rootfsImageID == filterValue) ||
|
||||
(rootfsImageName == filterValue) ||
|
||||
(imageNameWithoutTag == filterValue && imageTag == "latest") {
|
||||
util.StringMatchRegexSlice(rootfsImageName, filterValues) ||
|
||||
(util.StringMatchRegexSlice(imageNameWithoutTag, filterValues) && imageTag == "latest") {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user