fixes on use hive flightsheet flag

This commit is contained in:
clore 2024-05-16 13:57:00 +00:00
parent 35ce001a71
commit 504aa74f5e
2 changed files with 3 additions and 2 deletions

View File

@ -341,7 +341,7 @@ class CloreClient:
self.containers=container_conf[1]
tmp_images = []
for container in self.containers:
if "image" in container:
if "image" in container and "image" in container and container["image"]!="cloreai/hive-use-flightsheet":
log_pull = False
if "name" in container:
if "-order-" in container["name"]:
@ -411,6 +411,7 @@ class CloreClient:
self.validated_containers_set=True
self.validated_containers = result.valid_containers
self.use_hive_flightsheet = result.use_hive_flightsheet
log.debug(f"Use Hive flightsheet: {result.use_hive_flightsheet}")
elif type(result)==types.DeployContainersRes:
try:
self.all_running_container_names = result.all_running_container_names

View File

@ -155,7 +155,7 @@ class WebSocketClient:
if len(parsed_json["new_containers"]) > 0: # There should be at least one container
self.containers_set = True
self.containers=parsed_json["new_containers"]
#log.success(container_str)
log.success(container_str)
elif "allow_oc" in parsed_json: # Enable OC
self.oc_enabled=True
await self.send(json.dumps({"allow_oc":True}))