Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chengwang86 committed Sep 5, 2017
1 parent 578da0a commit 464cb3e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/apiservers/engine/backends/container_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ func (c *ContainerProxy) Stop(vc *viccontainer.VicContainer, name string, second
return nil
}

// UnbindContainerFromNetwork unbinds a container from the networks that it connects to
func (c *ContainerProxy) UnbindContainerFromNetwork(vc *viccontainer.VicContainer, handle string) (string, error) {
defer trace.End(trace.Begin(""))

Expand All @@ -841,11 +842,9 @@ func (c *ContainerProxy) UnbindContainerFromNetwork(vc *viccontainer.VicContaine
default:
return "", InternalServerError(err.Error())
}
} else {
handle = ub.Payload.Handle
}

return handle, nil
return ub.Payload.Handle, nil
}

// State returns container state
Expand Down

0 comments on commit 464cb3e

Please sign in to comment.