summaryrefslogtreecommitdiff
path: root/libpod/events/events.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-07 08:09:48 -0500
committerbaude <bbaude@redhat.com>2019-07-07 08:54:20 -0500
commitd252100c946ff7fd581197d636ed7966b11e9a83 (patch)
tree50fc6db382a33dcdf83b3798845980b636951bd7 /libpod/events/events.go
parentf7407f2eb512e1407f8281009eb829f37405119b (diff)
downloadpodman-d252100c946ff7fd581197d636ed7966b11e9a83.tar.gz
podman-d252100c946ff7fd581197d636ed7966b11e9a83.tar.bz2
podman-d252100c946ff7fd581197d636ed7966b11e9a83.zip
get last container event
an internal change in libpod will soon required the ability to lookup the last container event using the continer name or id and the type of event. this pr is in preperation for that need. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/events/events.go')
-rw-r--r--libpod/events/events.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index 1ec79bcd7..2bebff162 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -95,6 +95,8 @@ func StringToType(name string) (Type, error) {
return System, nil
case Volume.String():
return Volume, nil
+ case "":
+ return "", ErrEventTypeBlank
}
return "", errors.Errorf("unknown event type %q", name)
}