Skip to content

Commit

Permalink
fix: namespace name in msg (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored Aug 18, 2022
1 parent e575da3 commit a8f907b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/cmd/connector/namespace/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/redhat-developer/app-services-cli/pkg/cmd/connector/connectorcmdutil"
"github.com/redhat-developer/app-services-cli/pkg/cmd/kafka/flagutil"
"github.com/redhat-developer/app-services-cli/pkg/core/ioutil/dump"
"github.com/redhat-developer/app-services-cli/pkg/core/localize"
"github.com/redhat-developer/app-services-cli/pkg/shared/contextutil"
"github.com/redhat-developer/app-services-cli/pkg/shared/factory"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -85,7 +86,7 @@ func runCreate(opts *options) error {
return err
}

f.Logger.Info(f.Localizer.MustLocalize("connector.namespace.create.info.success"))
f.Logger.Info(f.Localizer.MustLocalize("connector.namespace.create.info.success"), localize.NewEntry("Name", opts.name))

return nil

Expand Down
2 changes: 1 addition & 1 deletion pkg/core/localize/locales/en/cmd/connectors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ rhoas connector namespace create --name "my-namespace" --eval
'''

[connector.namespace.create.info.success]
one = 'Successfully created the "{{.NAME}}" namespace'
one = 'Successfully created the "{{.Name}}" namespace'

[connector.namespace.delete.cmd.shortDescription]
one = 'Delete a Connectors namespace'
Expand Down

0 comments on commit a8f907b

Please sign in to comment.