From 504aa74f5e01077e769a8395019b7ccee0131575 Mon Sep 17 00:00:00 2001 From: clore Date: Thu, 16 May 2024 13:57:00 +0000 Subject: [PATCH] fixes on use hive flightsheet flag --- clore_hosting/main.py | 3 ++- clore_hosting/ws_interface.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clore_hosting/main.py b/clore_hosting/main.py index ac79f84..432a98a 100644 --- a/clore_hosting/main.py +++ b/clore_hosting/main.py @@ -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 diff --git a/clore_hosting/ws_interface.py b/clore_hosting/ws_interface.py index cf54793..2d7e542 100644 --- a/clore_hosting/ws_interface.py +++ b/clore_hosting/ws_interface.py @@ -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}))