Merge pull request #1279 from rickard-von-essen/issue_1226
Parallels-iso errors while removing floppy drive GH-1226
This commit is contained in:
commit
3f3deab162
|
@ -79,6 +79,8 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("Checking VM state: %s\n", strings.TrimSpace(stdout.String()))
|
||||||
|
|
||||||
for _, line := range strings.Split(stdout.String(), "\n") {
|
for _, line := range strings.Split(stdout.String(), "\n") {
|
||||||
if line == "running" {
|
if line == "running" {
|
||||||
return true, nil
|
return true, nil
|
||||||
|
@ -90,6 +92,9 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) {
|
||||||
if line == "paused" {
|
if line == "paused" {
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
if line == "stopping" {
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false, nil
|
return false, nil
|
||||||
|
|
Loading…
Reference in New Issue