From 7c8fcc8ea0a30fb6047a48b6f1e049caf5363957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Thu, 3 Oct 2024 09:16:37 +0200 Subject: [PATCH] Avoid logging void host information --- src/ert/scheduler/lsf_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ert/scheduler/lsf_driver.py b/src/ert/scheduler/lsf_driver.py index 941e05a2c0f..465c2518806 100644 --- a/src/ert/scheduler/lsf_driver.py +++ b/src/ert/scheduler/lsf_driver.py @@ -621,7 +621,7 @@ async def _poll_once_by_bhist( def update_and_log_exec_hosts(self, bjobs_exec_hosts: Dict[str, str]) -> None: for job_id, exec_hosts in bjobs_exec_hosts.items(): - if self._jobs[job_id].exec_hosts == "-": + if self._jobs[job_id].exec_hosts == "-" and exec_hosts != "-": logger.info( f"Realization {self._jobs[job_id].iens} was assigned to host: {exec_hosts}" )