diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-25 16:30:56 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-10-25 16:38:54 +0200 |
| commit | 133a6ce5649d94dfeac9aa07ac410e6a3d7ccf6a (patch) | |
| tree | 0482d851bd532278bbb5188b9dcfe4e9709e4c21 /python | |
| parent | d316d808669994c4528b67a651fe0559a4b3dc77 (diff) | |
| download | vyos-1x-133a6ce5649d94dfeac9aa07ac410e6a3d7ccf6a.tar.gz vyos-1x-133a6ce5649d94dfeac9aa07ac410e6a3d7ccf6a.zip | |
T7957: filter stderr when deleting container images
The call to rc_cmd('podman inspect ...') determines whether a container image
scheduled for deletion has any ancestor containers still using it. Previously,
if the podman command wrote output to stderr, rc_cmd() would return that error
message alongside or instead of the ancestor container ID.
This caused subsequent podman calls to fail, as the error string was incorrectly
treated as a valid command argument. This change ensures only valid ancestor
IDs are returned.
This is a fix for commit a99ca6d11b5 ("op-mode: T7403: add option for forcefully
remove a container image")
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
