mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
disable cache for now
This commit is contained in:
parent
cf5ebaf685
commit
68d86e81fb
@ -137,13 +137,16 @@ func (p *GRPCProvider) GetProviderSchema() (resp providers.GetProviderSchemaResp
|
||||
resp.ServerCapabilities.PlanDestroy = protoResp.ServerCapabilities.PlanDestroy
|
||||
}
|
||||
|
||||
// FIXME: Waiting for a provider capability to prevent caching
|
||||
// providers which always need GetProviderSchema called.
|
||||
// set the global cache if we can
|
||||
if !p.Addr.IsZero() {
|
||||
providers.SchemaCache.Set(p.Addr, resp)
|
||||
} else {
|
||||
// otherwise store it in the local cache
|
||||
p.schemas = resp
|
||||
}
|
||||
//if !p.Addr.IsZero() {
|
||||
// providers.SchemaCache.Set(p.Addr, resp)
|
||||
//} else {
|
||||
// // otherwise store it in the local cache
|
||||
// p.schemas = resp
|
||||
//}
|
||||
p.schemas = resp
|
||||
|
||||
return resp
|
||||
}
|
||||
|
@ -137,13 +137,16 @@ func (p *GRPCProvider) GetProviderSchema() (resp providers.GetProviderSchemaResp
|
||||
resp.ServerCapabilities.PlanDestroy = protoResp.ServerCapabilities.PlanDestroy
|
||||
}
|
||||
|
||||
// FIXME: Waiting for a provider capability to prevent caching
|
||||
// providers which always need GetProviderSchema called.
|
||||
// set the global cache if we can
|
||||
if !p.Addr.IsZero() {
|
||||
providers.SchemaCache.Set(p.Addr, resp)
|
||||
} else {
|
||||
// otherwise store it in the local cache
|
||||
p.schemas = resp
|
||||
}
|
||||
//if !p.Addr.IsZero() {
|
||||
// providers.SchemaCache.Set(p.Addr, resp)
|
||||
//} else {
|
||||
// // otherwise store it in the local cache
|
||||
// p.schemas = resp
|
||||
//}
|
||||
p.schemas = resp
|
||||
|
||||
return resp
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user