Correct name variable
parent
9fa98a834b
commit
b0e4b32805
|
@ -99,7 +99,7 @@ var statusCmd = &cobra.Command{
|
|||
cc, err := config.Load(viper.GetString(config.ProfileName))
|
||||
if err != nil {
|
||||
if config.IsNotExist(err) {
|
||||
exit.WithCodeT(exitCode(&Status{}), `The "{{.name}}" cluster does not exist!`, out.V{"name": config.ProfileName})
|
||||
exit.WithCodeT(exitCode(&Status{}), `The "{{.name}}" cluster does not exist!`, out.V{"name": viper.GetString(config.ProfileName)})
|
||||
}
|
||||
exit.WithError("getting config", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue