Don't swallow errors in the docker client.
This commit is contained in:
1 parent
e03a4bb176
commit
25c9180fdf
4 files changed
+13
-11
No files matched your search
+2
-4
@@ -223,12 +223,10 @@ func (alloc *Allocator) Claim(ident string, addr address.Address) error {
|
||||
}
|
||||
|
||||
// ContainerDied is provided to satisfy the updater interface; does a 'Delete' underneath. Sync.
|
||||
func (alloc *Allocator) ContainerDied(ident string) error {
|
||||
err := alloc.Delete(ident)
|
||||
if err == nil {
|
||||
func (alloc *Allocator) ContainerDied(ident string) {
|
||||
if err := alloc.Delete(ident); err == nil {
|
||||
alloc.debugln("Container", ident, "died; released addresses")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// Delete (Sync) - release all IP addresses for container with given name
|
||||
|
||||
Reference in new issue
Block a user