From 4e58e6b4817add94615323a80053f3d23b683581 Mon Sep 17 00:00:00 2001 From: "Yngve S. Kristiansen" Date: Tue, 5 Nov 2024 09:03:53 +0100 Subject: [PATCH] Cast stop_long_running to bool It is not really a subclass of bool so pydantic validation fails, but its context is also never used so casting is OK. --- src/ert/config/queue_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ert/config/queue_config.py b/src/ert/config/queue_config.py index 64aa1746081..9ed6653b263 100644 --- a/src/ert/config/queue_config.py +++ b/src/ert/config/queue_config.py @@ -364,7 +364,7 @@ def from_dict(cls, config_dict: ConfigDict) -> QueueConfig: selected_queue_system, queue_options, queue_options_test_run, - stop_long_running=stop_long_running, + stop_long_running=bool(stop_long_running), ) def create_local_copy(self) -> QueueConfig: @@ -375,7 +375,7 @@ def create_local_copy(self) -> QueueConfig: QueueSystem.LOCAL, self.queue_options_test_run, self.queue_options_test_run, - stop_long_running=self.stop_long_running, + stop_long_running=bool(self.stop_long_running), ) @property