@xen-orchestra/backups 0.58.3 → 0.58.4

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.
@@ -11,7 +11,6 @@ import { MixinXapiWriter } from './_MixinXapiWriter.mjs'
11
11
  import { listReplicatedVms } from './_listReplicatedVms.mjs'
12
12
  import { COPY_OF, setVmOtherConfig, BASE_DELTA_VDI } from '../../_otherConfig.mjs'
13
13
 
14
- import assert from 'node:assert'
15
14
  export class IncrementalXapiWriter extends MixinXapiWriter(AbstractIncrementalWriter) {
16
15
  async checkBaseVdis(baseUuidToSrcVdi) {
17
16
  const sr = this._sr
@@ -118,9 +117,10 @@ export class IncrementalXapiWriter extends MixinXapiWriter(AbstractIncrementalWr
118
117
  const baseReplicatedTo = replicatedVdis.find(
119
118
  replicatedVdi => replicatedVdi.other_config[COPY_OF] === vdi.other_config[BASE_DELTA_VDI]
120
119
  )
121
- assert.notStrictEqual(baseReplicatedTo, undefined)
120
+ // baseReplicatedTo can be undefined if a new disk is added and other are already replicated
122
121
  vdi.baseVdi = baseReplicatedTo
123
122
  } else {
123
+ // first replication of this disk
124
124
  vdi.baseVdi = undefined
125
125
  }
126
126
  // ensure the VDI are created on the target SR
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/vatesfr/xen-orchestra.git"
10
10
  },
11
- "version": "0.58.3",
11
+ "version": "0.58.4",
12
12
  "engines": {
13
13
  "node": ">=14.18"
14
14
  },
@@ -28,7 +28,7 @@
28
28
  "@vates/nbd-client": "^3.1.2",
29
29
  "@vates/parse-duration": "^0.1.1",
30
30
  "@xen-orchestra/async-map": "^0.1.2",
31
- "@xen-orchestra/fs": "^4.4.0",
31
+ "@xen-orchestra/fs": "^4.4.1",
32
32
  "@xen-orchestra/log": "^0.7.1",
33
33
  "@xen-orchestra/template": "^0.1.0",
34
34
  "app-conf": "^3.0.0",
@@ -59,7 +59,7 @@
59
59
  "tmp": "^0.2.1"
60
60
  },
61
61
  "peerDependencies": {
62
- "@xen-orchestra/xapi": "^8.1.0"
62
+ "@xen-orchestra/xapi": "^8.1.1"
63
63
  },
64
64
  "license": "AGPL-3.0-or-later",
65
65
  "author": {