parent
4fb6bef04c
commit
54ef65ced9
@ -80,16 +80,10 @@ class BackupReportsXoPlugin {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let vmStatus
|
|
||||||
|
|
||||||
if (call.error) {
|
|
||||||
vmStatus = 'Fail'
|
|
||||||
} else {
|
|
||||||
nSuccess++
|
|
||||||
vmStatus = 'Success'
|
|
||||||
}
|
|
||||||
|
|
||||||
nCalls++
|
nCalls++
|
||||||
|
if (!call.error) {
|
||||||
|
nSuccess++
|
||||||
|
}
|
||||||
|
|
||||||
let vm
|
let vm
|
||||||
|
|
||||||
@ -104,7 +98,9 @@ class BackupReportsXoPlugin {
|
|||||||
text.push([
|
text.push([
|
||||||
`### VM : ${vm ? vm.name_label : 'undefined'}`,
|
`### VM : ${vm ? vm.name_label : 'undefined'}`,
|
||||||
` - UUID: ${vm ? vm.uuid : 'undefined'}`,
|
` - UUID: ${vm ? vm.uuid : 'undefined'}`,
|
||||||
` - Status: ${vmStatus}`,
|
call.error
|
||||||
|
? ` - Status: Failure\n - Error: ${call.error.message}`
|
||||||
|
: ' - Status: Success',
|
||||||
` - Start time: ${String(start)}`,
|
` - Start time: ${String(start)}`,
|
||||||
` - End time: ${String(end)}`,
|
` - End time: ${String(end)}`,
|
||||||
` - Duration: ${duration}`
|
` - Duration: ${duration}`
|
||||||
|
Loading…
Reference in New Issue
Block a user