Fetch the correct VM even when the param is vm and not id (fix #3).

This commit is contained in:
Julien Fontanet 2016-02-12 09:09:37 +01:00
parent adb71ad174
commit 05c325d686

View File

@ -87,7 +87,7 @@ class BackupReportsXoPlugin {
let vm
try {
vm = this._xo.getObject(call.params.id)
vm = this._xo.getObject(call.params.id || call.params.vm)
} catch (e) {}
const start = moment(call.start)