Skip to content

Commit

Permalink
Merge pull request moby#2176 from ctelfer/remove-net-attach-info
Browse files Browse the repository at this point in the history
Remove non-service cluster info on sbLeave
  • Loading branch information
Flavio Crisciani committed May 31, 2018
2 parents 9ba7c0d + d8910dc commit 3931ba4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,8 @@ func (ep *endpoint) sbLeave(sb *sandbox, force bool, options ...EndpointOption)
}
}

if ep.svcID != "" {
if err := ep.deleteServiceInfoFromCluster(sb, true, "sbLeave"); err != nil {
logrus.Warnf("Failed to clean up service info on container %s disconnect: %v", ep.name, err)
}
if err := ep.deleteServiceInfoFromCluster(sb, true, "sbLeave"); err != nil {
logrus.Warnf("Failed to clean up service info on container %s disconnect: %v", ep.name, err)
}

if err := sb.clearNetworkResources(ep); err != nil {
Expand Down

0 comments on commit 3931ba4

Please sign in to comment.