From fa86fdd86e39316cea86e5af8005cfd55ee84187 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Mon, 14 Oct 2024 15:27:31 +0200 Subject: [PATCH] Lowercase architecture labels Signed-off-by: Francesco Torchia --- shell/models/provisioning.cattle.io.cluster.js | 2 +- shell/pages/c/_cluster/explorer/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/models/provisioning.cattle.io.cluster.js b/shell/models/provisioning.cattle.io.cluster.js index b9a823bb1c6..1f57c2f83d4 100644 --- a/shell/models/provisioning.cattle.io.cluster.js +++ b/shell/models/provisioning.cattle.io.cluster.js @@ -411,7 +411,7 @@ export default class ProvCluster extends SteveModel { if (!node.metadata?.state?.transitioning) { const architecture = node.status?.nodeLabels?.[NODE_ARCHITECTURE]; - const key = architecture ? capitalize(architecture) : this.t('cluster.architecture.label.unknown'); + const key = architecture || this.t('cluster.architecture.label.unknown'); obj[key] = (obj[key] || 0) + 1; } diff --git a/shell/pages/c/_cluster/explorer/index.vue b/shell/pages/c/_cluster/explorer/index.vue index 37af4248bf4..5a8eb13e069 100644 --- a/shell/pages/c/_cluster/explorer/index.vue +++ b/shell/pages/c/_cluster/explorer/index.vue @@ -212,7 +212,7 @@ export default { if (!node.metadata?.state?.transitioning) { const architecture = node.labels?.[NODE_ARCHITECTURE]; - const key = architecture ? capitalize(architecture) : this.t('cluster.architecture.label.unknown'); + const key = architecture || this.t('cluster.architecture.label.unknown'); obj[key] = (obj[key] || 0) + 1; }