Skip to content

Commit

Permalink
fix: The number of worker nodes is incorrect
Browse files Browse the repository at this point in the history
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
  • Loading branch information
weili520 committed Dec 27, 2021
1 parent 8290701 commit 4990839
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 4990839

Please sign in to comment.