mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix #5231
This commit is contained in:
parent
f2ee9cba6d
commit
aff8212818
@ -745,6 +745,7 @@ def vm_cputime(vm_=None):
|
|||||||
with _get_xapi_session() as xapi:
|
with _get_xapi_session() as xapi:
|
||||||
def _info(vm_):
|
def _info(vm_):
|
||||||
host_rec = _get_record_by_label(xapi, 'VM', vm_)
|
host_rec = _get_record_by_label(xapi, 'VM', vm_)
|
||||||
|
host_cpus = len(host_rec['host_CPUs'])
|
||||||
if host_rec is False:
|
if host_rec is False:
|
||||||
return False
|
return False
|
||||||
host_metrics = _get_metrics_record(xapi, 'VM', host_rec)
|
host_metrics = _get_metrics_record(xapi, 'VM', host_rec)
|
||||||
|
Loading…
Reference in New Issue
Block a user