fix(xo-vmdk-to-vhd/generateVmdkData): don't use VM name as OVF filename

It might break the OVA depending on present characters.
This commit is contained in:
Florent BEAUCHAMP
2022-06-09 16:46:59 +02:00
committed by Julien Fontanet
parent c7d8709267
commit c11e03ab26
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
- [Backup] Ensure a warning is shown if a target preparation step fails (PR [#6266](https://github.com/vatesfr/xen-orchestra/pull/6266))
- [OVA Export] Avoid creating a zombie task (PR [#6267](https://github.com/vatesfr/xen-orchestra/pull/6267))
- [OVA Export] Increase speed by lowering compression to acceptable level (PR [#6267](https://github.com/vatesfr/xen-orchestra/pull/6267))
- [OVA Export] Fix broken OVAs due to special characters in VM name (PR [#6267](https://github.com/vatesfr/xen-orchestra/pull/6267))
### Packages to release

View File

@@ -22,7 +22,7 @@ export async function writeOvaOn(
const ovf = createOvf(vmName, vmDescription, disks, nics, vmMemoryMB, cpuCount, firmware)
const pack = tar.pack()
const pipe = pack.pipe(writeStream)
await fromCallback.call(pack, pack.entry, { name: `${vmName}.ovf` }, Buffer.from(ovf, 'utf8'))
await fromCallback.call(pack, pack.entry, { name: `metadata.ovf` }, Buffer.from(ovf, 'utf8'))
async function writeDisk(entry, blockIterator) {
for await (const block of blockIterator) {