Skip to content

Commit 573bc30

Browse files
author
Santhosh Manohar
committed
Merge pull request #943 from mavenugo/netdel
getNetworksFromStore should not fail on inconsistent network state
2 parents 4e363c2 + 6efd95c commit 573bc30

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)