Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
daemon: fix GetContainer() returning (nil, nil)
GetContainer() would return (nil, nil) when looking up a container if the container was inserted into the containersReplica ViewDB but not the containers Store at the time of the lookup. Callers which reasonably assume that the returned err == nil implies returned container != nil would dereference a nil pointer and panic. Change GetContainer() so that it always returns a container or an error. Signed-off-by: Cory Snider <csnider@mirantis.com> (cherry picked from commit 00157a4) Signed-off-by: Cory Snider <csnider@mirantis.com>
- Loading branch information