Skip to content

Commit

Permalink
Merge pull request #1157 from mavenugo/ep-fix
Browse files Browse the repository at this point in the history
Set persist flag on the dummy network object during cleanup
  • Loading branch information
Santhosh Manohar committed May 7, 2016
2 parents 8ff70f6 + 2b3f9b3 commit 8da8142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (c *controller) sandboxCleanup() {
var ep *endpoint
if err != nil {
logrus.Errorf("getNetworkFromStore for nid %s failed while trying to build sandbox for cleanup: %v", eps.Nid, err)
n = &network{id: eps.Nid, ctrlr: c, drvOnce: &sync.Once{}}
n = &network{id: eps.Nid, ctrlr: c, drvOnce: &sync.Once{}, persist: true}
ep = &endpoint{id: eps.Eid, network: n, sandboxID: sbs.ID}
} else {
ep, err = n.getEndpointFromStore(eps.Eid)
Expand Down

0 comments on commit 8da8142

Please sign in to comment.