Skip to content

Commit

Permalink
ota_core: allow enabling external_cache without cache_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 2, 2024
1 parent 71372f5 commit 06a7073
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ota_proxy/ota_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ def __init__(

self._external_cache_data_dir = None
self._external_cache_mp = None
if (
cache_enabled
and external_cache_mnt_point
and mount_external_cache(external_cache_mnt_point)
):
if external_cache_mnt_point and mount_external_cache(external_cache_mnt_point):
logger.info(
f"external cache source is enabled at: {external_cache_mnt_point}"
)
Expand Down

0 comments on commit 06a7073

Please sign in to comment.