fix(@xen-orchestra/backups/Backup.js): fix rolling snapshot not ran if alone (#5656)

This commit is contained in:
badrAZ 2021-03-09 18:24:58 +01:00 committed by GitHub
parent e0e89213d3
commit 5cca5d69af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ exports.Backup = class Backup {
// remove srs that failed (already handled) // remove srs that failed (already handled)
srs = srs.filter(_ => _ !== undefined) srs = srs.filter(_ => _ !== undefined)
if (remoteAdapters.length === 0 && srs.length === 0) { if (remoteAdapters.length === 0 && srs.length === 0 && scheduleSettings.snapshotRetention === 0) {
return return
} }