From 487e0e183e1afb78c1ac9a17e3fa74b07f799a70 Mon Sep 17 00:00:00 2001 From: Herko Lategan Date: Mon, 6 Oct 2025 15:13:21 +0100 Subject: [PATCH] roachprod: fix parse int for grow Previously, the number of nodes to grow a cluster by was limited to the max of a signed byte. This change increases the limit to a word. Epic: None Release note: None --- pkg/cmd/roachprod/cli/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/roachprod/cli/commands.go b/pkg/cmd/roachprod/cli/commands.go index 080e2c61b876..26ef29e87729 100644 --- a/pkg/cmd/roachprod/cli/commands.go +++ b/pkg/cmd/roachprod/cli/commands.go @@ -166,7 +166,7 @@ be fairly distributed across the zones of the cluster). `, Args: cobra.ExactArgs(2), Run: Wrap(func(cmd *cobra.Command, args []string) error { - count, err := strconv.ParseInt(args[1], 10, 8) + count, err := strconv.ParseInt(args[1], 10, 16) if err != nil || count < 1 { return errors.Wrapf(err, "invalid num-nodes argument") }