Skip to content

Commit

Permalink
fix print stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax committed Dec 31, 2024
1 parent 6cb1c17 commit f82b66f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/aws/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,13 @@ func validateAMIType(ctx context.Context, amiType, nodeType string, ssmClient ss
return fmt.Errorf("failed to get supported instance types: %w", err)
}

fmt.Println("Supported instance types: ", instanceTypes)

for _, instanceType := range instanceTypes {
if instanceType == nodeType {
return nil
}
}

return fmt.Errorf("node type %s not supported for %s", nodeType, amiType)
return fmt.Errorf("node type %s not supported for %s\nSupported instance types: %s", nodeType, amiType, instanceTypes)
}

type ssmClienter interface {
Expand Down
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var rootCmd = &cobra.Command{
fmt.Println(" kubefirst help")
progress.Progress.Quit()
},
SilenceErrors: true,
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit f82b66f

Please sign in to comment.