summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-07-30 09:28:22 +0900
committerToshiki Sonoda <sonoda.toshiki@fujitsu.com>2022-07-30 10:59:59 +0900
commit53ec479685a7636a1bcc75bf3a88fbf7d95ba72a (patch)
tree644ccd7c975901490fadb085950710ad3d83195d /libpod
parentfed326d8a6f8d4f7dc490099b29d51fc1754789f (diff)
downloadpodman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.tar.gz
podman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.tar.bz2
podman-53ec479685a7636a1bcc75bf3a88fbf7d95ba72a.zip
Add rm --filter option
--filter : remove the filtered container. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_ctr.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index ce0fd869d..703ae5cbe 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -995,7 +995,7 @@ func (r *Runtime) RemoveDepend(ctx context.Context, rmCtr *Container, force bool
return nil, err
}
for _, cID := range podContainerIDS {
- rmReports = append(rmReports, &reports.RmReport{Id: cID})
+ rmReports = append(rmReports, &reports.RmReport{Id: cID, RawInput: cID})
}
return rmReports, nil
}
@@ -1023,7 +1023,7 @@ func (r *Runtime) RemoveDepend(ctx context.Context, rmCtr *Container, force bool
rmReports = append(rmReports, reports...)
}
- report := reports.RmReport{Id: rmCtr.ID()}
+ report := reports.RmReport{Id: rmCtr.ID(), RawInput: rmCtr.ID()}
report.Err = r.removeContainer(ctx, rmCtr, force, removeVolume, false, timeout)
return append(rmReports, &report), nil
}