Skip to content

Commit

Permalink
fix(@xen-orchestra): naming of VM during healtcheck of a continuous r…
Browse files Browse the repository at this point in the history
…eplicaton
  • Loading branch information
fbeauchamp committed Feb 24, 2023
1 parent 849beef commit cd28097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion @xen-orchestra/backups/writers/_MixinReplicationWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ exports.MixinReplicationWriter = (BaseClass = Object) =>
const { $xapi: xapi } = sr
let clonedVm
try {
const clonedRef = await xapi.callAsync('VM.clone', this._targetVmRef, 'cloning').then(extractOpaqueRef)
const baseVm = xapi.getObject(this._targetVmRef) ?? (await xapi.waitObject(this._targetVmRef))
const clonedRef = await xapi
.callAsync('VM.clone', this._targetVmRef, `Health Check - ${baseVm.name_label}`)
.then(extractOpaqueRef)
clonedVm = xapi.getObject(clonedRef) ?? (await xapi.waitObject(clonedRef))

await new HealthCheckVmBackup({
Expand Down

0 comments on commit cd28097

Please sign in to comment.