fix(plugins): typos and spelling (#8728)

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
See #8593
This commit is contained in:
Pierre Donias
2025-06-19 14:15:41 +02:00
committed by GitHub
parent 8d498151d9
commit 31ef709b30
10 changed files with 18 additions and 16 deletions

View File

@@ -81,7 +81,9 @@
- xo-server minor
- xo-server-auth-oidc patch
- xo-server-backup-reports minor
- xo-server-load-balancer patch
- xo-server-perf-alert patch
- xo-server-transport-nagios patch
- xo-web minor
<!--packages-end-->

View File

@@ -53,7 +53,7 @@ exports.configurationSchema = {
Scopes should be listed separated by a single whitespace.
Note: The \`openid\` scope is implicitely included.
Note: The \`openid\` scope is implicitly included.
`,
default: 'profile',
title: 'Scopes',

View File

@@ -67,7 +67,7 @@ const UNHEALTHY_VDI_CHAIN_ERROR = 'unhealthy VDI chain'
const UNHEALTHY_VDI_CHAIN_MESSAGE =
'(unhealthy VDI chain) Job canceled to protect the VDI chain. See https://docs.xen-orchestra.com/backup_troubleshooting#vdi-chain-protection'
const getAdditionnalData = async (task, props) => {
const getAdditionalData = async (task, props) => {
if (task.data?.type === 'remote') {
const name = await props.xo.getRemote(task.data.id).then(
({ name }) => name,
@@ -175,12 +175,12 @@ class BackupReportsXoPlugin {
for (const taskBatch of Object.values(tasksByStatus)) {
for (const task of taskBatch) {
task.additionnalData = await getAdditionnalData(task, { xo })
task.additionalData = await getAdditionalData(task, { xo })
const subTasks = task.tasks
if (subTasks !== undefined) {
for (const subTask of subTasks) {
subTask.additionnalData = await getAdditionnalData(subTask, { xo })
subTask.additionalData = await getAdditionalData(subTask, { xo })
}
}
}

View File

@@ -47,7 +47,7 @@ for (const name of readdirSync(__dirname)) {
const { name } = parts
const path = join(dir, base)
if (partials.has(name)) {
const error = new Error('confliciting partial: ' + name)
const error = new Error('conflicting partial: ' + name)
error.previous = partials.get(name)
error.current = path
throw error

View File

@@ -2,7 +2,7 @@
[XO] {{{jobName}}}
{{~/ifCond}}
{{#ifCond task.data.type '===' 'remote'}}
[remote] {{{task.additionnalData.name}}}
[remote] {{{task.additionalData.name}}}
{{~/ifCond}}
{{#ifCond task.data.type '===' 'pool'}}
[pool] {{#if task.data.pool.name_label ~}} {{{task.data.pool.name_label}}} {{~else if task.data.poolMaster.name_label ~}} {{{task.data.poolMaster.name_label}}} {{~else~}} Unknown {{~/if}}

View File

@@ -2,7 +2,7 @@
[XO] {{{jobName}}}
{{~/ifCond}}
{{#ifCond task.data.type '===' 'remote'}}
[remote] {{{task.additionnalData.name}}}
[remote] {{{task.additionalData.name}}}
{{~/ifCond}}
{{#ifCond task.data.type '===' 'pool'}}
[pool] {{#if task.data.pool.name_label ~}} {{{task.data.pool.name_label}}} {{~else if task.data.poolMaster.name_label ~}} {{{task.data.poolMaster.name_label}}} {{~else~}} Unknown {{~/if}}

View File

@@ -181,7 +181,7 @@ class LoadBalancerPlugin {
// Check already used pools.
if (intersection(pools, this._poolIds).length > 0) {
throw new Error(`Pool(s) already included in an other plan: ${pools}`)
throw new Error(`Pool(s) already included in another plan: ${pools}`)
}
this._poolIds = this._poolIds.concat(pools)

View File

@@ -117,12 +117,12 @@ export default class PerformancePlan extends Plan {
}
}
}
// Step 4 : vCPU prepositionning (if option is enable. Incompatible with step 3 option)
if (this._performanceSubmode === 'vCpuPrepositionning') {
// Step 4 : vCPU prepositioning (if option is enable. Incompatible with step 3 option)
if (this._performanceSubmode === 'vCpuPrepositioning') {
for (const poolId of this._poolIds) {
const poolHosts = filter(hosts, host => host.$poolId === poolId)
if (poolHosts.length > 1) {
await this._processVcpuPrepositionning(poolHosts)
await this._processVcpuPrepositioning(poolHosts)
}
}
}

View File

@@ -144,7 +144,7 @@ export default class Plan {
this._antiAffinityTags = antiAffinityTags
// balanceVcpus variable name was kept for compatibility with past configuration schema
this._performanceSubmode =
balanceVcpus === false ? 'conservative' : balanceVcpus === true ? 'vCpuPrepositionning' : balanceVcpus
balanceVcpus === false ? 'conservative' : balanceVcpus === true ? 'vCpuPrepositioning' : balanceVcpus
this._globalOptions = globalOptions
this._concurrentMigrationLimiter = concurrentMigrationLimiter
@@ -311,7 +311,7 @@ export default class Plan {
// vCPU pre-positioning helpers
// ===================================================================
async _processVcpuPrepositionning(hosts) {
async _processVcpuPrepositioning(hosts) {
const promises = []
const idToHost = keyBy(hosts, 'id')
@@ -320,7 +320,7 @@ export default class Plan {
const idealVcpuPerCpuRatio =
hostList.reduce((sum, host) => sum + host.vcpuCount, 0) / hostList.reduce((sum, host) => sum + host.cpuCount, 0)
debugVcpuBalancing('Trying to apply vCPU prepositionning.')
debugVcpuBalancing('Trying to apply vCPU prepositioning.')
debugVcpuBalancing(`vCPU count per host: ${inspect(hostList, { depth: null })}`)
debugVcpuBalancing(`Average vCPUs per CPU: ${idealVcpuPerCpuRatio}`)
@@ -336,7 +336,7 @@ export default class Plan {
const { averages: hostsAverages } = await this._getHostStatsAverages({ hosts })
const poolAverageCpu = computeAverageCpu(hostsAverages)
if (poolAverageCpu > THRESHOLD_POOL_CPU) {
debugVcpuBalancing(`Pool too much loaded for vCPU prepositionning: ${poolAverageCpu}% CPU used`)
debugVcpuBalancing(`Pool too much loaded for vCPU prepositioning: ${poolAverageCpu}% CPU used`)
return
}
const vmsAverages = await this._getVmsAverages(allVms, idToHost)

View File

@@ -26,7 +26,7 @@ export const configurationSchema = {
properties: {
server: {
type: 'string',
description: 'The nagios server adress',
description: 'The nagios server address',
},
port: {
type: 'integer',