Fix choke when starting from Saved state

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-07-07 14:36:21 -07:00
parent 83a8a4c0f8
commit 9053ee24c7
1 changed files with 5 additions and 3 deletions

View File

@ -388,9 +388,11 @@ func (d *Driver) Start() error {
return err
}
// check network to re-create if needed
if err := d.setupHostOnlyNetwork(d.MachineName); err != nil {
return err
if s == state.Stopped {
// check network to re-create if needed
if err := d.setupHostOnlyNetwork(d.MachineName); err != nil {
return fmt.Errorf("Error setting up host only network on machine start: %s", err)
}
}
switch s {