fix(xo-web/file-restore): ignore proxy remotes (#5171)

See xoa-support#2741
This commit is contained in:
badrAZ
2020-07-28 11:43:33 +02:00
committed by GitHub
parent 48734c6896
commit 349a78a5bd

View File

@@ -110,7 +110,10 @@ export default class Restore extends Component {
_remotes = this.props.remotes,
jobs = this.props.jobs
) => {
const remotes = keyBy(filter(_remotes, { enabled: true }), 'id')
const remotes = keyBy(
filter(_remotes, ({ enabled, proxy }) => enabled && proxy === undefined),
'id'
)
const backupsByRemote = await listVmBackups(toArray(remotes))
const backupDataByVm = {}