This commit is contained in:
Thomas S Hatch 2013-05-29 19:58:18 +00:00
parent f2ee9cba6d
commit aff8212818

View File

@ -745,6 +745,7 @@ def vm_cputime(vm_=None):
with _get_xapi_session() as xapi:
def _info(vm_):
host_rec = _get_record_by_label(xapi, 'VM', vm_)
host_cpus = len(host_rec['host_CPUs'])
if host_rec is False:
return False
host_metrics = _get_metrics_record(xapi, 'VM', host_rec)