Merge pull request #183 from eldada/master

Add missing backtick to wrap namespace name
mine
Fernand Galiana 2019-05-07 22:03:36 -06:00 committed by GitHub
commit 8e5a7058c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.vscode
.idea
k9s.log
.envrc
cov.out

View File

@ -35,8 +35,8 @@ func (n *Namespace) Validate(c Connection, ks KubeSettings) {
}
nn := ks.NamespaceNames(nns)
if !n.isAllNamespace() && !InList(nn, n.Active) {
log.Error().Msgf("[Config] Validation error active namespace `%s does not exists", n.Active)
panic(fmt.Errorf("Invalid namespace. The provided namespace `%s does not exists", n.Active))
log.Error().Msgf("[Config] Validation error active namespace `%s` does not exist", n.Active)
panic(fmt.Errorf("Invalid namespace. The provided namespace `%s` does not exist", n.Active))
}
for _, ns := range n.Favorites {