Skip to content

Commit

Permalink
NodeState UNKNOWN 상태에 대해서 정상으로 처리 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungh0 authored Jul 18, 2024
1 parent 9e090e4 commit fd49c74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const NodesHome = () => {
const nodes = response.data.result.items
setNodeList(nodes)
setTotalNodeSize(nodes.length)
setAvailableNodeSize(nodes.filter(node => node.nodeState === 'UP').length)
setAvailableNodeSize(nodes.filter(node => node.nodeState === 'UP' || node.nodeState === 'UNKNOWN').length)
}).catch((error) => {
errorCatch(error);
}).finally(() => {
Expand Down Expand Up @@ -93,7 +93,7 @@ const NodesHome = () => {
<tbody>
{nodesByDcAndRack[datacenter][rack].map((node) => (
<tr key={node.nodeId}
className={node.nodeState !== 'UP' ? 'table-danger' : ''}>
className={node.nodeState === 'UP' || node.nodeState === 'UNKNOWN' ? '' : 'table-danger'}>
<td className="text-center">{node.nodeId}</td>
<td className="text-center">{node.nodeState}</td>
<td className="text-center">{node.hostIp.replace('/', '')}</td>
Expand Down

0 comments on commit fd49c74

Please sign in to comment.