mirror of
https://github.com/containers/podman.git
synced 2025-05-22 09:36:57 +08:00
Remove wait event
It's not necessary to log an event for a read-only operation like wait. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -32,7 +32,6 @@ The *container* event type will report the follow statuses:
|
|||||||
* sync
|
* sync
|
||||||
* unmount
|
* unmount
|
||||||
* unpause
|
* unpause
|
||||||
* wait
|
|
||||||
|
|
||||||
The *pod* event type will report the follow statuses:
|
The *pod* event type will report the follow statuses:
|
||||||
* create
|
* create
|
||||||
|
@ -574,7 +574,6 @@ func (c *Container) WaitWithInterval(waitTimeout time.Duration) (int32, error) {
|
|||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
exitCode := c.state.ExitCode
|
exitCode := c.state.ExitCode
|
||||||
c.newContainerEvent(events.Wait)
|
|
||||||
return exitCode, nil
|
return exitCode, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,6 @@ const (
|
|||||||
Unpause Status = "unpause"
|
Unpause Status = "unpause"
|
||||||
// Untag ...
|
// Untag ...
|
||||||
Untag Status = "untag"
|
Untag Status = "untag"
|
||||||
// Wait ...
|
|
||||||
Wait Status = "wait"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventFilter for filtering events
|
// EventFilter for filtering events
|
||||||
@ -261,8 +259,6 @@ func StringToStatus(name string) (Status, error) {
|
|||||||
return Unpause, nil
|
return Unpause, nil
|
||||||
case Untag.String():
|
case Untag.String():
|
||||||
return Untag, nil
|
return Untag, nil
|
||||||
case Wait.String():
|
|
||||||
return Wait, nil
|
|
||||||
}
|
}
|
||||||
return "", errors.Errorf("unknown event status %s", name)
|
return "", errors.Errorf("unknown event status %s", name)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user