invalidate cache when switching context
parent
4c0b02e9d2
commit
2cb7116fae
|
|
@ -332,6 +332,7 @@ func (a *APIClient) SwitchContextOrDie(ctx string) {
|
|||
}
|
||||
|
||||
if currentCtx != ctx {
|
||||
a.cachedDiscovery = nil
|
||||
a.reset()
|
||||
if err := a.config.SwitchContext(ctx); err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue