Skip to content

Commit

Permalink
Fixed error in flag passing
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Kosiewski <[email protected]>
  • Loading branch information
Thomas Kosiewski committed Sep 21, 2023
1 parent 2d095d5 commit 4501dd1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/vclusterctl/cmd/pro/pro.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,7 @@ func NewProCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error) {
func NewStartCmd(loftctlGlobalFlags *loftctlflags.GlobalFlags) (*cobra.Command, error) {
starCmd := loftctl.NewStartCmd(loftctlGlobalFlags)

configPath, err := pro.GetLoftConfigFilePath()
if err != nil {
return nil, fmt.Errorf("failed to get vcluster pro configuration file path: %w", err)
}

err = starCmd.Flags().Set("config", configPath)
if err != nil {
return nil, fmt.Errorf("failed to set config flag: %w", err)
}

err = starCmd.Flags().Set("product", "vcluster-pro")
err := starCmd.Flags().Set("product", "vcluster-pro")
if err != nil {
return nil, fmt.Errorf("failed to set product flag: %w", err)
}
Expand Down

0 comments on commit 4501dd1

Please sign in to comment.