enforce image_cache_allowed_prefixes
This commit is contained in:
parent
95ea84a9a0
commit
83e7d7f730
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue