Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:20 +01:00
parent 19b11aac2c
commit 4626d56acd
214 changed files with 3162 additions and 1298 deletions
@@ -79,7 +79,7 @@ export default class HciVlanConfig extends HarvesterResource {
}
get vlanStatuses() {
const nodes = this.nodes.map(n => n.id) || [];
const nodes = this.nodes.map((n) => n.id) || [];
const vlanStatuses = this.$rootGetters[`${ this.inStore }/all`](HCI.VLAN_STATUS);
return vlanStatuses.filter((s) => {
@@ -107,16 +107,16 @@ export default class HciVlanConfig extends HarvesterResource {
if (isEmpty(nodeSelector)) {
return nodes;
} else if (nodeSelector[HOSTNAME] && Object.keys(nodeSelector).length === 1) {
return nodes.filter(n => n.id === nodeSelector[HOSTNAME]) || [];
return nodes.filter((n) => n.id === nodeSelector[HOSTNAME]) || [];
} else {
const matchNodes = matching(nodes || [], nodeSelector).map(n => n.id);
const matchNodes = matching(nodes || [], nodeSelector).map((n) => n.id);
return nodes.filter(n => matchNodes.includes(n.id));
return nodes.filter((n) => matchNodes.includes(n.id));
}
}
get nodes() {
return this.selectedNodes.filter(n => !n.isUnSchedulable && n.isEtcd !== 'true');
return this.selectedNodes.filter((n) => !n.isUnSchedulable && n.isEtcd !== 'true');
}
get stateDisplay() {