From 06a7073c5a884ac6326ec619923c01fc22a702df Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Mon, 2 Dec 2024 07:33:20 +0000 Subject: [PATCH] ota_core: allow enabling external_cache without cache_enabled --- src/ota_proxy/ota_cache.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ota_proxy/ota_cache.py b/src/ota_proxy/ota_cache.py index 1d48cfbde..3c8fbacf0 100644 --- a/src/ota_proxy/ota_cache.py +++ b/src/ota_proxy/ota_cache.py @@ -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}" )