Skip to content

Commit 6efd95c

Browse files
committed
getNetworksFromStore should not fail on inconsistent network state
Signed-off-by: Madhu Venugopal <madhu@docker.com>
1 parent 4e363c2 commit 6efd95c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

store.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ func (c *controller) getNetworksFromStore() ([]*network, error) {
139139
ec := &endpointCnt{n: n}
140140
err = store.GetObject(datastore.Key(ec.Key()...), ec)
141141
if err != nil {
142-
return nil, fmt.Errorf("could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err)
142+
log.Warnf("could not find endpoint count key %s for network %s while listing: %v", datastore.Key(ec.Key()...), n.Name(), err)
143+
continue
143144
}
144145

145146
n.Lock()

0 commit comments

Comments
 (0)