Revision aa0b600b
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
235 | 235 |
if os.path.exists(uid_file): |
236 | 236 |
try: |
237 | 237 |
uid = int(utils.ReadFile(uid_file)) |
238 |
return uid |
|
238 | 239 |
except EnvironmentError: |
239 | 240 |
logging.warning("Can't read uid file", exc_info=True) |
240 |
return None |
|
241 | 241 |
except (TypeError, ValueError): |
242 | 242 |
logging.warning("Can't parse uid file contents", exc_info=True) |
243 |
return None |
|
244 |
return uid |
|
243 |
return None |
|
245 | 244 |
|
246 | 245 |
@classmethod |
247 | 246 |
def _RemoveInstanceRuntimeFiles(cls, pidfile, instance_name): |
Also available in: Unified diff