fix(vhd-lib/mergeVhdChain): inverse condition to use VhdSynthetic

Introduced by 76813737e
This commit is contained in:
Julien Fontanet
2022-08-11 17:03:42 +02:00
parent 8f9f1f566d
commit 5e8dd4e4bc

View File

@@ -115,7 +115,7 @@ module.exports.mergeVhdChain = limitConcurrency(2)(async function mergeVhdChain(
let childVhd
const parentIsVhdDirectory = parentVhd instanceof VhdDirectory
let childIsVhdDirectory
if (childrenPaths.length === 1) {
if (childrenPaths.length !== 1) {
childVhd = yield VhdSynthetic.open(handler, childrenPaths)
childIsVhdDirectory = childVhd.checkVhdsClass(VhdDirectory)
} else {