linux: Pass correct type when emitting RuntimeDelete event

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-06-23 17:55:23 -07:00
parent 28b7aa5355
commit 6574055dec
No known key found for this signature in database
GPG Key ID: 40CF16616B361216

View File

@ -241,7 +241,7 @@ func (r *Runtime) Delete(ctx context.Context, c plugin.Task) (*plugin.Exit, erro
bundle = loadBundle(filepath.Join(r.root, namespace, lc.containerID), namespace) bundle = loadBundle(filepath.Join(r.root, namespace, lc.containerID), namespace)
i = c.Info() i = c.Info()
) )
if err := r.emit(ctx, "/runtime/delete", eventsapi.RuntimeDelete{ if err := r.emit(ctx, "/runtime/delete", &eventsapi.RuntimeDelete{
ID: i.ID, ID: i.ID,
Runtime: i.Runtime, Runtime: i.Runtime,
ExitStatus: rsp.ExitStatus, ExitStatus: rsp.ExitStatus,