Skip to content

Commit

Permalink
fix(backups): use the right settings in writers (#7567)
Browse files Browse the repository at this point in the history
Fixes https://xcp-ng.org/forum/post/75762
Introduced by 42dc75e

Fix error `Error: val is not a non-empty string or a valid number. val=undefined`
  • Loading branch information
fbeauchamp committed Apr 18, 2024
1 parent 164985a commit aa6b23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -108,7 +108,7 @@ export const MixinRemoteWriter = (BaseClass = Object) =>
restoredVm = await xapi.waitObject(restoredId)
}
try {
const timeout = ms(this._config.healthCheckTimeout)
const timeout = ms(this._settings.healthCheckTimeout)
await new HealthCheckVmBackup({
restoredVm,
timeout,
Expand Down
Expand Up @@ -71,7 +71,7 @@ export const MixinXapiWriter = (BaseClass = Object) =>
const healthCheckVm =
xapi.getObject(healthCheckVmRef, undefined) ?? (await xapi.waitObject(healthCheckVmRef))
await healthCheckVm.add_tags('xo:no-bak=Health Check')
const timeout = ms(this._config.healthCheckTimeout)
const timeout = ms(this._settings.healthCheckTimeout)
await new HealthCheckVmBackup({
restoredVm: healthCheckVm,
timeout,
Expand Down

0 comments on commit aa6b23c

Please sign in to comment.