Skip to content

Commit

Permalink
Strip newlines from strings read from disk
Browse files Browse the repository at this point in the history
On poly case this would otherwise yield an empty line in the logs.
  • Loading branch information
berland committed Sep 17, 2024
1 parent eb3ce00 commit 13d3afa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ert/config/ert_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def _log_config_dict(cls, content_dict: Dict[str, Any]) -> None:
@classmethod
def _log_custom_forward_model_steps(cls, user_config: ConfigDict) -> None:
for fm_step, fm_step_filename in user_config.get(ConfigKeys.INSTALL_JOB, []):
fm_configuration = Path(fm_step_filename).read_text(encoding="utf-8")
fm_configuration = (
Path(fm_step_filename).read_text(encoding="utf-8").strip()
)
logger.info(
f"Custom forward_model_step {fm_step} installed as: {fm_configuration}"
)
Expand Down

0 comments on commit 13d3afa

Please sign in to comment.