cli: fix coordinator/node count order

This commit is contained in:
Thomas Tendyck 2022-04-06 14:01:32 +02:00 committed by Thomas Tendyck
parent 8b7bafb482
commit 393c1f7dd1
3 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ func newCreateAWSCmd() *cobra.Command {
// runCreateAWS runs the create command. // runCreateAWS runs the create command.
func runCreateAWS(cmd *cobra.Command, args []string) error { 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]) size := strings.ToLower(args[2])
name, err := cmd.Flags().GetString("name") name, err := cmd.Flags().GetString("name")

View File

@ -33,8 +33,8 @@ func newCreateAzureCmd() *cobra.Command {
// runCreateAzure runs the create command. // runCreateAzure runs the create command.
func runCreateAzure(cmd *cobra.Command, args []string) error { func runCreateAzure(cmd *cobra.Command, args []string) error {
countNodes, _ := strconv.Atoi(args[0]) // err already checked in args validation countCoordinators, _ := strconv.Atoi(args[0]) // err already checked in args validation
countCoordinators, _ := strconv.Atoi(args[1]) // err already checked in args validation countNodes, _ := strconv.Atoi(args[1]) // err already checked in args validation
size := strings.ToLower(args[2]) size := strings.ToLower(args[2])
subscriptionID := "0d202bbb-4fa7-4af8-8125-58c269a05435" // TODO: This will be user input subscriptionID := "0d202bbb-4fa7-4af8-8125-58c269a05435" // TODO: This will be user input
tenantID := "adb650a8-5da3-4b15-b4b0-3daf65ff7626" // TODO: This will be user input tenantID := "adb650a8-5da3-4b15-b4b0-3daf65ff7626" // TODO: This will be user input

View File

@ -33,8 +33,8 @@ func newCreateGCPCmd() *cobra.Command {
// runCreateGCP runs the create command. // runCreateGCP runs the create command.
func runCreateGCP(cmd *cobra.Command, args []string) error { func runCreateGCP(cmd *cobra.Command, args []string) error {
countNodes, _ := strconv.Atoi(args[0]) // err already checked in args validation countCoordinators, _ := strconv.Atoi(args[0]) // err already checked in args validation
countCoordinators, _ := strconv.Atoi(args[1]) // err already checked in args validation countNodes, _ := strconv.Atoi(args[1]) // err already checked in args validation
size := strings.ToLower(args[2]) size := strings.ToLower(args[2])
project := "constellation-331613" // TODO: This will be user input project := "constellation-331613" // TODO: This will be user input
zone := "europe-west3-b" // TODO: This will be user input zone := "europe-west3-b" // TODO: This will be user input