Skip to content

Commit

Permalink
Corrected bug in machine status while getting machine properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rajch committed Jun 15, 2021
1 parent 0fb57b9 commit a0fe279
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ func (vh *Machine) get() error {
return fmt.Errorf("machine %s not found", vh.name)
}

// If machine properties could be retrieved, assume the machine is in
// Stopped state. Parsing the properties may change this.
vh.status = drivercore.MachineStatusStopped

if output != "" {
vh.parseProps(output)
}
Expand Down

0 comments on commit a0fe279

Please sign in to comment.