diff --git a/cli/cmd/create_aws.go b/cli/cmd/create_aws.go index e4204cf65..851c73140 100644 --- a/cli/cmd/create_aws.go +++ b/cli/cmd/create_aws.go @@ -35,7 +35,7 @@ func newCreateAWSCmd() *cobra.Command { // runCreateAWS runs the create command. func runCreateAWS(cmd *cobra.Command, args []string) error { - count, _ := strconv.Atoi(args[0]) // err already checked in args validation + count, _ := strconv.Atoi(args[1]) // err already checked in args validation size := strings.ToLower(args[2]) name, err := cmd.Flags().GetString("name") diff --git a/cli/cmd/create_azure.go b/cli/cmd/create_azure.go index 5bd7359da..e45c653a3 100644 --- a/cli/cmd/create_azure.go +++ b/cli/cmd/create_azure.go @@ -33,8 +33,8 @@ func newCreateAzureCmd() *cobra.Command { // runCreateAzure runs the create command. func runCreateAzure(cmd *cobra.Command, args []string) error { - countNodes, _ := strconv.Atoi(args[0]) // err already checked in args validation - countCoordinators, _ := strconv.Atoi(args[1]) // err already checked in args validation + countCoordinators, _ := strconv.Atoi(args[0]) // err already checked in args validation + countNodes, _ := strconv.Atoi(args[1]) // err already checked in args validation size := strings.ToLower(args[2]) subscriptionID := "0d202bbb-4fa7-4af8-8125-58c269a05435" // TODO: This will be user input tenantID := "adb650a8-5da3-4b15-b4b0-3daf65ff7626" // TODO: This will be user input diff --git a/cli/cmd/create_gcp.go b/cli/cmd/create_gcp.go index 28bd13d8d..23a93f3c4 100644 --- a/cli/cmd/create_gcp.go +++ b/cli/cmd/create_gcp.go @@ -33,8 +33,8 @@ func newCreateGCPCmd() *cobra.Command { // runCreateGCP runs the create command. func runCreateGCP(cmd *cobra.Command, args []string) error { - countNodes, _ := strconv.Atoi(args[0]) // err already checked in args validation - countCoordinators, _ := strconv.Atoi(args[1]) // err already checked in args validation + countCoordinators, _ := strconv.Atoi(args[0]) // err already checked in args validation + countNodes, _ := strconv.Atoi(args[1]) // err already checked in args validation size := strings.ToLower(args[2]) project := "constellation-331613" // TODO: This will be user input zone := "europe-west3-b" // TODO: This will be user input