1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Trust the endpoint state if we have a valid sandbox-id

Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
Madhu Venugopal 2017-02-02 14:46:59 -08:00
parent 71fff44c0b
commit 2a9be357f9

View file

@ -181,6 +181,9 @@ type tableEntry struct {
} }
func (ep *endpoint) Info() EndpointInfo { func (ep *endpoint) Info() EndpointInfo {
if ep.sandboxID != "" {
return ep
}
n, err := ep.getNetworkFromStore() n, err := ep.getNetworkFromStore()
if err != nil { if err != nil {
return nil return nil