Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for minor typos #262

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mgradm/cmd/gpg/add/gpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type gpgAddFlags struct {
func NewCommand(globalFlags *types.GlobalFlags) *cobra.Command {
gpgAddKeyCmd := &cobra.Command{
Use: "add [URL]...",
Short: L("Add gpg keys for 3rd party repositories"),
Short: L("Add GPG keys for 3rd party repositories"),
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
var flags gpgAddFlags
Expand Down
2 changes: 1 addition & 1 deletion mgradm/cmd/gpg/gpg.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func NewCommand(globalFlags *types.GlobalFlags) *cobra.Command {
gpgKeyCmd := &cobra.Command{
Use: "gpg",
Short: L("Manage gpg keys for 3rd party repositories"),
Short: L("Manage GPG keys for 3rd party repositories"),
Args: cobra.ExactArgs(1),
}

Expand Down
4 changes: 2 additions & 2 deletions mgradm/cmd/upgrade/shared/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func isUyuni(cnx *shared.Connection) (bool, error) {
cnx_args := []string{"/etc/susemanager-release"}
_, err := cnx.Exec("cat", cnx_args...)
if err != nil {
return false, errors.New(L("cannot find neither /etc/uyuni-release nor /etc/susemanagere-release"))
return false, errors.New(L("cannot find neither /etc/uyuni-release nor /etc/susemanager-release"))
}
return false, nil
}
Expand Down Expand Up @@ -98,7 +98,7 @@ func SanityCheck(cnx *shared.Connection, inspectedValues map[string]string, serv
}
log.Debug().Msgf("Image %s has PostgreSQL %s", serverImage, inspectedValues["image_pg_version"])
if (len(inspectedValues["current_pg_version"])) <= 0 {
return fmt.Errorf(L("posgresql is not installed in the current deployment"))
return fmt.Errorf(L("PostgreSQL is not installed in the current deployment"))
}
log.Debug().Msgf("Current deployment has PostgreSQL %s", inspectedValues["current_pg_version"])

Expand Down
2 changes: 1 addition & 1 deletion mgrctl/cmd/org/createFirst.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func createFirstCommand(globalFlags *types.GlobalFlags) *cobra.Command {
cmd.Flags().String("admin-firstName", "Administrator", L("The first name of the administrator"))
cmd.Flags().String("admin-lastName", "McAdmin", L("The last name of the administrator"))
cmd.Flags().String("admin-email", "root@localhost", L("The administrator's email"))
cmd.Flags().String("organization", "Organiszation", L("The first organization name"))
cmd.Flags().String("organization", "Organization", L("The first organization name"))

return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion shared/podman/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func pullImage(image string, args ...string) error {
return utils.RunCmdStdMapping(loglevel, "podman", podmanArgs...)
}

// ShowAvailableTag returns the list of avaialable tag for a given image.
// ShowAvailableTag returns the list of available tag for a given image.
func ShowAvailableTag(image string) ([]string, error) {
log.Debug().Msgf("Running podman image search --list-tags %s --format='{{.Tag}}'", image)

Expand Down
2 changes: 1 addition & 1 deletion shared/utils/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

package utils

// KubernetesBuilt is a flag for compiling kubernes code. True when go:build !nok8s, False when go:build nok8s.
// KubernetesBuilt is a flag for compiling kubernetes code. True when go:build !nok8s, False when go:build nok8s.
const KubernetesBuilt = true