Skip to content

Commit

Permalink
Fix for minor typos
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Gedon <[email protected]>
  • Loading branch information
nodeg committed Apr 22, 2024
1 parent 5a4c7fd commit 754a7ef
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
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

0 comments on commit 754a7ef

Please sign in to comment.