mirror of
https://github.com/containers/podman.git
synced 2025-09-27 00:34:32 +08:00
vendor containers/common@7482cf851d
Make sure that image events are written *after* execution. Fixes: #10812 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
2
vendor/github.com/containers/common/libimage/push.go
generated
vendored
2
vendor/github.com/containers/common/libimage/push.go
generated
vendored
@ -65,7 +65,7 @@ func (r *Runtime) Push(ctx context.Context, source, destination string, options
|
||||
}
|
||||
|
||||
if r.eventChannel != nil {
|
||||
r.writeEvent(&Event{ID: image.ID(), Name: destination, Time: time.Now(), Type: EventTypeImagePush})
|
||||
defer r.writeEvent(&Event{ID: image.ID(), Name: destination, Time: time.Now(), Type: EventTypeImagePush})
|
||||
}
|
||||
|
||||
// Buildah compat: Make sure to tag the destination image if it's a
|
||||
|
Reference in New Issue
Block a user