Skip to content

Commit

Permalink
Lowercase architecture labels
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
  • Loading branch information
torchiaf committed Oct 14, 2024
1 parent 14950d3 commit fa86fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/models/provisioning.cattle.io.cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion shell/pages/c/_cluster/explorer/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa86fdd

Please sign in to comment.