Fetch the correct VM even when the param is vm
and not id
(fix #3).
This commit is contained in:
parent
adb71ad174
commit
05c325d686
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user