Skip to content

Commit

Permalink
fix getClusterID
Browse files Browse the repository at this point in the history
  • Loading branch information
nexustar committed Oct 11, 2021
1 parent 75cc31e commit 9f34ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/api/pdapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func (pc *PDClient) GetClusterID() (string, error) {
return "", err
}

return clusterID["id"].(string), nil
return fmt.Sprintf("%.0f", clusterID["id"]), nil
}

// GetDashboardAddress get the PD node address which runs dashboard
Expand Down

0 comments on commit 9f34ae7

Please sign in to comment.