fix(xo-server/xapi-stats/getVmStats): avoid sync exceptions (#3661)
This commit is contained in:
@@ -418,7 +418,7 @@ export default class XapiStats {
|
||||
})
|
||||
}
|
||||
|
||||
getVmStats (xapi, vmId, granularity) {
|
||||
async getVmStats (xapi, vmId, granularity) {
|
||||
const vm = xapi.getObject(vmId)
|
||||
const host = vm.$resident_on
|
||||
if (!host) {
|
||||
|
||||
Reference in New Issue
Block a user