Correct name variable

pull/7041/head
Thomas Stromberg 2020-03-13 16:00:30 -07:00
parent 9fa98a834b
commit b0e4b32805
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}