Add missing return error check

Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Lei Jitang 2015-05-21 17:03:43 +08:00
parent ef0a145593
commit a9bc05a2f8

View file

@ -761,7 +761,9 @@ func (container *Container) AllocateNetwork() error {
return fmt.Errorf("Updating join info failed: %v", err)
}
container.WriteHostConfig()
if err := container.WriteHostConfig(); err != nil {
return err
}
return nil
}