From 8edbd10349afb4ea78919e0037cf895eb95cb5fb Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Tue, 12 Jan 2016 11:36:48 -0800 Subject: [PATCH] Updating to the new ep.Delete API Signed-off-by: Madhu Venugopal --- daemon/container_operations_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/container_operations_unix.go b/daemon/container_operations_unix.go index 4ee9e5f44c..266fc9bb09 100644 --- a/daemon/container_operations_unix.go +++ b/daemon/container_operations_unix.go @@ -784,7 +784,7 @@ func (daemon *Daemon) connectToNetwork(container *container.Container, idOrName } defer func() { if err != nil { - if e := ep.Delete(); e != nil { + if e := ep.Delete(false); e != nil { logrus.Warnf("Could not rollback container connection to network %s", idOrName) } } @@ -881,7 +881,7 @@ func disconnectFromNetwork(container *container.Container, n libnetwork.Network) return fmt.Errorf("container %s failed to leave network %s: %v", container.ID, n.Name(), err) } - if err := ep.Delete(); err != nil { + if err := ep.Delete(false); err != nil { return fmt.Errorf("endpoint delete failed for container %s on network %s: %v", container.ID, n.Name(), err) }