Revision 00ad5362 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
202 | 202 |
for name in os.listdir(self._PIDS_DIR): |
203 | 203 |
filename = "%s/%s" % (self._PIDS_DIR, name) |
204 | 204 |
if utils.IsProcessAlive(utils.ReadPidFile(filename)): |
205 |
data.append(self.GetInstanceInfo(name)) |
|
205 |
try: |
|
206 |
info = self.GetInstanceInfo(name) |
|
207 |
except errors.HypervisorError, err: |
|
208 |
continue |
|
209 |
if info: |
|
210 |
data.append(info) |
|
206 | 211 |
|
207 | 212 |
return data |
208 | 213 |
|
Also available in: Unified diff