linux: Pass correct type when emitting RuntimeDelete event
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
28b7aa5355
commit
6574055dec
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user