Skip to content

Commit

Permalink
Fix incorrect node count when tpu is in the cluster name (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Obliviour authored Dec 8, 2023
1 parent 3afdaf8 commit 67449dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ def cluster_describe(args) -> int:
xpk_exit(return_code)

return_code_node_output, node_output = run_command_for_value(
r"kubectl get node --no-headers=true | grep '\-tpu\-' | wc -l",
r"kubectl get node --no-headers=true --selector='cloud.google.com/gke-tpu-accelerator' | wc -l",
'Count TPU Nodes',
args,
)
Expand Down

0 comments on commit 67449dd

Please sign in to comment.