Forráskód Böngészése

Merge pull request #935 from mavenugo/in

getNetworksFromStore should return all valid networks
aboch 9 éve
szülő
commit
7e3727e70c
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      libnetwork/store.go

+ 2 - 1
libnetwork/store.go

@@ -104,7 +104,8 @@ func (c *controller) getNetworksForScope(scope string) ([]*network, error) {
 		ec := &endpointCnt{n: n}
 		ec := &endpointCnt{n: n}
 		err = store.GetObject(datastore.Key(ec.Key()...), ec)
 		err = store.GetObject(datastore.Key(ec.Key()...), ec)
 		if err != nil {
 		if err != nil {
-			return nil, fmt.Errorf("could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err)
+			log.Warnf("Could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err)
+			continue
 		}
 		}
 
 
 		n.epCnt = ec
 		n.epCnt = ec