mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 15:09:39 -05:00
cli: fix coordinator/node count order
This commit is contained in:
parent
8b7bafb482
commit
393c1f7dd1
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user