From f489b594735f395e12d811cf2e762b15658d7b6e Mon Sep 17 00:00:00 2001 From: FellowJacob Date: Thu, 31 Oct 2024 03:56:42 +0100 Subject: [PATCH] fix - use set_stock_oc param even from saved config --- clore_onboarding.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clore_onboarding.py b/clore_onboarding.py index 7300e59..5d42835 100644 --- a/clore_onboarding.py +++ b/clore_onboarding.py @@ -254,8 +254,6 @@ async def hive_load_configs(default_power_limits, static_config): if key[-9:] == "_TEMPLATE": possible_clore_config = base64_string_to_json(value) if possible_clore_config: - if "set_stock_oc" in possible_clore_config: - get_oc_config=True clore_config = possible_clore_config elif key == "CUSTOM_MINER" and value == "clore": clore_miner_present = True @@ -264,6 +262,12 @@ async def hive_load_configs(default_power_limits, static_config): clore_miner_present = True clore_config = parsed_static_config + try: + if clore_config and "set_stock_oc" in clore_config: + get_oc_config=True + except Exception as es: + pass + if not clore_miner_present: logger.info("CLORE not found in flighsheet, exiting") await run_command("systemctl disable clore-hosting.service ; systemctl stop clore-hosting.service ; systemctl disable docker ; systemctl stop docker ; systemctl disable clore-onboarding.service ; systemctl stop clore-onboarding.service")