@xen-orchestra/backups 0.44.4 → 0.44.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/formatVmBackups.mjs +2 -1
- package/package.json +1 -1
package/formatVmBackups.mjs
CHANGED
|
@@ -6,7 +6,8 @@ function formatVmBackup(backup) {
|
|
|
6
6
|
|
|
7
7
|
let differencingVhds
|
|
8
8
|
let dynamicVhds
|
|
9
|
-
|
|
9
|
+
// some backups don't use snapshots, therefore cannot be with memory
|
|
10
|
+
const withMemory = vmSnapshot !== undefined && vmSnapshot.suspend_VDI !== 'OpaqueRef:NULL'
|
|
10
11
|
// isVhdDifferencing is either undefined or an object
|
|
11
12
|
if (isVhdDifferencing !== undefined) {
|
|
12
13
|
differencingVhds = Object.values(isVhdDifferencing).filter(t => t).length
|