Add missing return error check
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
ef0a145593
commit
a9bc05a2f8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue