diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-26 07:09:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-26 07:09:17 -0700 |
commit | 60b009af4ef1415b83e0419ba41381912693ab86 (patch) | |
tree | 3927f6c2f9a3bfa97c3fe5ebefaaf1f1d49645ea /pkg/varlinkapi | |
parent | 94406bcce935bf12c16e7e7762e9796fa0363f91 (diff) | |
parent | e730fc609347ddef217418dd6b0a9da5f671ba89 (diff) | |
download | podman-60b009af4ef1415b83e0419ba41381912693ab86.tar.gz podman-60b009af4ef1415b83e0419ba41381912693ab86.tar.bz2 podman-60b009af4ef1415b83e0419ba41381912693ab86.zip |
Merge pull request #2758 from baude/eventsDied
Add "died" event
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r-- | pkg/varlinkapi/events.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/varlinkapi/events.go b/pkg/varlinkapi/events.go index d3fe3d65f..47c628ead 100644 --- a/pkg/varlinkapi/events.go +++ b/pkg/varlinkapi/events.go @@ -10,13 +10,15 @@ import ( ) // GetEvents is a remote endpoint to get events from the event log -func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since string, stream bool, until string) error { +func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since string, until string) error { var ( fromStart bool eventsError error event *events.Event + stream bool ) if call.WantsMore() { + stream = true call.Continues = true } filters, err := shared.GenerateEventOptions(filter, since, until) @@ -52,5 +54,5 @@ func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since break } } - return call.ReplyGetEvents(iopodman.Event{}) + return nil } |