Prechádzať zdrojové kódy

Merge pull request #987 from mavenugo/cnr

Fixed a panic issue in clearNetworkResources
Alessandro Boch 9 rokov pred
rodič
commit
48dadca30a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      libnetwork/sandbox.go

+ 1 - 1
libnetwork/sandbox.go

@@ -650,7 +650,7 @@ func (sb *sandbox) clearNetworkResources(origEp *endpoint) error {
 	ep := sb.getEndpoint(origEp.id)
 	ep := sb.getEndpoint(origEp.id)
 	if ep == nil {
 	if ep == nil {
 		return fmt.Errorf("could not find the sandbox endpoint data for endpoint %s",
 		return fmt.Errorf("could not find the sandbox endpoint data for endpoint %s",
-			ep.name)
+			origEp.id)
 	}
 	}
 
 
 	sb.Lock()
 	sb.Lock()