Browse Source

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

Signed-off-by: Madhu Venugopal <madhu@docker.com>
Madhu Venugopal 8 years ago
parent
commit
2a9be357f9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libnetwork/endpoint_info.go

+ 3 - 0
libnetwork/endpoint_info.go

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