Skip to content

Commit

Permalink
Merge pull request #2878 from weili520/worknode_num_incerrect
Browse files Browse the repository at this point in the history
fix: The number of worker nodes is incorrect
  • Loading branch information
ks-ci-bot authored Dec 28, 2021
2 parents c5b6689 + 4990839 commit ade132d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class NodeStore extends Base {

const masterWorker = resp.items.filter(
item =>
getNodeRoles(item.metadata.labels).filter(role => role !== 'master')
getNodeRoles(item.metadata.labels).every(role => role !== 'master')
.length > 0
).length

Expand Down

0 comments on commit ade132d

Please sign in to comment.