@@ -44,7 +44,7 @@ type Instance struct {
44
44
Networks []limayaml.Network `json:"network,omitempty"`
45
45
SSHLocalPort int `json:"sshLocalPort,omitempty"`
46
46
HostAgentPID int `json:"hostAgentPID,omitempty"`
47
- QemuPID int `json:"qemuPID ,omitempty"`
47
+ DriverPID int `json:"driverPID ,omitempty"`
48
48
Errors []error `json:"errors,omitempty"`
49
49
}
50
50
@@ -121,19 +121,19 @@ func Inspect(instName string) (*Instance, error) {
121
121
}
122
122
}
123
123
124
- inst .QemuPID , err = ReadPIDFile (filepath .Join (instDir , filenames .QemuPID ))
124
+ inst .DriverPID , err = ReadPIDFile (filepath .Join (instDir , filenames .PIDFile ( * y . VMType ) ))
125
125
if err != nil {
126
126
inst .Status = StatusBroken
127
127
inst .Errors = append (inst .Errors , err )
128
128
}
129
129
130
130
if inst .Status == StatusUnknown {
131
- if inst .HostAgentPID > 0 && inst .QemuPID > 0 {
131
+ if inst .HostAgentPID > 0 && inst .DriverPID > 0 {
132
132
inst .Status = StatusRunning
133
- } else if inst .HostAgentPID == 0 && inst .QemuPID == 0 {
133
+ } else if inst .HostAgentPID == 0 && inst .DriverPID == 0 {
134
134
inst .Status = StatusStopped
135
- } else if inst .HostAgentPID > 0 && inst .QemuPID == 0 {
136
- inst .Errors = append (inst .Errors , errors .New ("host agent is running but qemu is not" ))
135
+ } else if inst .HostAgentPID > 0 && inst .DriverPID == 0 {
136
+ inst .Errors = append (inst .Errors , errors .New ("host agent is running but driver is not" ))
137
137
inst .Status = StatusBroken
138
138
} else {
139
139
inst .Errors = append (inst .Errors , fmt .Errorf ("%s driver is running but host agent is not" , inst .VMType ))
0 commit comments