From 83e7d7f730e9681f71a65058cd7164d1b900f760 Mon Sep 17 00:00:00 2001 From: clore Date: Tue, 18 Mar 2025 20:02:41 +0000 Subject: [PATCH] enforce image_cache_allowed_prefixes --- clore_hosting/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clore_hosting/main.py b/clore_hosting/main.py index b6772e8..660bff0 100644 --- a/clore_hosting/main.py +++ b/clore_hosting/main.py @@ -151,7 +151,7 @@ class CloreClient: self.start_time = utils.unix_timestamp() self.runned_pull_selftest = False - self.image_cache_allowed_prefixes = [] + self.image_cache_allowed_prefixes = None WebSocketClient.set_gpu_list(nvml.get_gpu_name_list()) WebSocketClient.set_is_hive(self.is_hive) @@ -280,7 +280,7 @@ class CloreClient: if len(got_data)>0: self.p_needed_containers=got_data[len(got_data)-1] - if len(self.p_needed_containers)>0: + if len(self.p_needed_containers)>0 and self.image_cache_allowed_prefixes != None and len(self.containers) > 0: local_images = await get_local_images(no_latest_tag=True) partner_images = await clore_partner.get_partner_allowed_images() for local_image in local_images: