summaryrefslogtreecommitdiff
path: root/pkg/adapter/runtime_remote.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-03-25 09:48:38 -0500
committerbaude <bbaude@redhat.com>2019-03-25 10:28:50 -0500
commite730fc609347ddef217418dd6b0a9da5f671ba89 (patch)
treee3a98f1d979204e12ecdacc794f3129a047f14e1 /pkg/adapter/runtime_remote.go
parentd0c6a35c05a72e4b156819406b83aa9f34f840e0 (diff)
downloadpodman-e730fc609347ddef217418dd6b0a9da5f671ba89.tar.gz
podman-e730fc609347ddef217418dd6b0a9da5f671ba89.tar.bz2
podman-e730fc609347ddef217418dd6b0a9da5f671ba89.zip
Add "died" event
We have a new event for container 'Exited' which has been renamed to 'died'. also removed the stream bool from the varlink endpoint for events because it can be determined by the varlink more value. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/adapter/runtime_remote.go')
-rw-r--r--pkg/adapter/runtime_remote.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/adapter/runtime_remote.go b/pkg/adapter/runtime_remote.go
index 01f774dbd..6c53d0c62 100644
--- a/pkg/adapter/runtime_remote.go
+++ b/pkg/adapter/runtime_remote.go
@@ -763,7 +763,11 @@ func (r *LocalRuntime) JoinOrCreateRootlessPod(pod *Pod) (bool, int, error) {
// Events monitors libpod/podman events over a varlink connection
func (r *LocalRuntime) Events(c *cliconfig.EventValues) error {
- reply, err := iopodman.GetEvents().Send(r.Conn, uint64(varlink.More), c.Filter, c.Since, c.Stream, c.Until)
+ var more uint64
+ if c.Stream {
+ more = uint64(varlink.More)
+ }
+ reply, err := iopodman.GetEvents().Send(r.Conn, more, c.Filter, c.Since, c.Until)
if err != nil {
return errors.Wrapf(err, "unable to obtain events")
}