fix(backup-ng/new): only list writable SRs for CR/DR (#3085)

Fixes #3050
This commit is contained in:
badrAZ 2018-06-21 15:41:16 +02:00 committed by Julien Fontanet
parent 0c514198bb
commit 0217c51559
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- [Backup NG] Auto-detect when a full export is necessary.
- Fix Load Balancer [#3075](https://github.com/vatesfr/xen-orchestra/issues/3075#event-1685469551) [#3026](https://github.com/vatesfr/xen-orchestra/issues/3026)
- [SR stats] Don't scale XAPI iowait values [#2969](https://github.com/vatesfr/xen-orchestra/issues/2969)
- [Backup NG] Don't list unusable SRs for CR/DR [#3050](https://github.com/vatesfr/xen-orchestra/issues/3050)
## **5.20.0** (2018-05-31)

View File

@ -35,6 +35,7 @@ import {
deleteSchedule,
editBackupNgJob,
editSchedule,
isSrWritable,
subscribeRemotes,
} from 'xo'
@ -630,7 +631,7 @@ export default [
tags: constructSmartPattern(tags, normaliseTagValues),
type: 'VM',
}),
srPredicate: ({ srs }) => ({ id }) => !includes(srs, id),
srPredicate: ({ srs }) => sr => isSrWritable(sr) && !includes(srs, sr.id),
remotePredicate: ({ remotes }) => ({ id }) => !includes(remotes, id),
},
}),