diff options
author | Brent Baude <bbaude@redhat.com> | 2020-04-09 16:11:38 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-09 16:59:33 -0500 |
commit | 7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd (patch) | |
tree | 29102563982befd9a07106ab93a8ebab43b983f4 /pkg/bindings/test/containers_test.go | |
parent | 3a4bd395164c97bf4b8b1fcb97f2475ca188866e (diff) | |
download | podman-7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd.tar.gz podman-7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd.tar.bz2 podman-7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd.zip |
v2podman container cleanup
add the ability to clean up after a container has attempted to run. this is also important for podman run --rm --rmi.
also included are fixes and tweaks to various code bits to correct regressions on output.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/bindings/test/containers_test.go')
-rw-r--r-- | pkg/bindings/test/containers_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/test/containers_test.go b/pkg/bindings/test/containers_test.go index ee5df40a0..d3fc80eea 100644 --- a/pkg/bindings/test/containers_test.go +++ b/pkg/bindings/test/containers_test.go @@ -508,7 +508,7 @@ var _ = Describe("Podman containers ", func() { _, err = bt.RunTopContainer(&name2, &bindings.PFalse, nil) Expect(err).To(BeNil()) containerLatestList, err := containers.List(bt.conn, nil, nil, &latestContainers, nil, nil, nil) - err = containers.Kill(bt.conn, containerLatestList[0].Names[0], "SIGTERM") + err = containers.Kill(bt.conn, containerLatestList[0].Names(), "SIGTERM") Expect(err).To(BeNil()) }) |