Skip to content

Commit

Permalink
Correctly handle empty CachePolicy.Type
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini committed Mar 7, 2022
1 parent 3d387b3 commit 489d921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ func (process *TeleportProcess) newLocalCacheForWindowsDesktop(clt auth.ClientI,
// newLocalCache returns new instance of access point
func (process *TeleportProcess) newLocalCache(clt auth.ClientI, setupConfig cache.SetupConfigFn, cacheName []string) (*cache.Cache, error) {
return process.newAccessCache(accessCacheConfig{
inMemory: process.Config.CachePolicy.Type == memory.GetName(),
inMemory: process.Config.CachePolicy.Type != lite.GetName(),
services: clt,
setup: setupConfig,
cacheName: cacheName,
Expand Down

0 comments on commit 489d921

Please sign in to comment.