@xen-orchestra/backups 0.58.4 → 0.59.0

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.
Files changed (2) hide show
  1. package/RemoteAdapter.mjs +13 -5
  2. package/package.json +2 -2
package/RemoteAdapter.mjs CHANGED
@@ -423,12 +423,20 @@ export class RemoteAdapter {
423
423
  async listAllVms() {
424
424
  const handler = this._handler
425
425
  const vmsUuids = []
426
- await asyncEach(await handler.list(BACKUP_DIR), async entry => {
427
- // ignore hidden and lock files
428
- if (entry[0] !== '.' && !entry.endsWith('.lock')) {
429
- vmsUuids.push(entry)
426
+ try {
427
+ await asyncEach(await handler.list(BACKUP_DIR), async entry => {
428
+ // ignore hidden and lock files
429
+ if (entry[0] !== '.' && !entry.endsWith('.lock')) {
430
+ vmsUuids.push(entry)
431
+ }
432
+ })
433
+ } catch (error) {
434
+ // remote without any VM backup are ok
435
+ if (error.code !== 'ENOENT') {
436
+ throw error
430
437
  }
431
- })
438
+ }
439
+
432
440
  return vmsUuids
433
441
  }
434
442
 
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.4",
11
+ "version": "0.59.0",
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.1",
31
+ "@xen-orchestra/fs": "^4.5.0",
32
32
  "@xen-orchestra/log": "^0.7.1",
33
33
  "@xen-orchestra/template": "^0.1.0",
34
34
  "app-conf": "^3.0.0",