switch contexts only when needed (#2433)
parent
fa4d3acbd1
commit
96a7e5a4d4
|
|
@ -439,7 +439,7 @@ func (a *App) isValidNS(ns string) (bool, error) {
|
|||
|
||||
func (a *App) switchContext(ci *cmd.Interpreter) error {
|
||||
name, ok := ci.HasContext()
|
||||
if !ok {
|
||||
if !ok || a.Config.ActiveContextName() == name {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue