From a0a9a58914723795729b56970215d861344c6833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kost?= Date: Wed, 6 May 2026 21:02:22 +0200 Subject: [PATCH] fix: unreachable case statement due to uppercase strings We are using lower() in the match line, thus we cannot have uppercase strings in the case statements. --- src/pypts/recipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pypts/recipe.py b/src/pypts/recipe.py index f5796b8..ee70e9a 100644 --- a/src/pypts/recipe.py +++ b/src/pypts/recipe.py @@ -826,8 +826,8 @@ def build_step(step_data:dict): case "userrunmethodstep": step_type = "UserRunMethodStep" case "userwritestep": step_type = "UserWriteStep" case "serialnumberstep": step_type = "SerialNumberStep" - case "SSHConnectStep": step_type = "SSHConnectStep" - case "SSHCloseStep": step_type = "SSHCloseStep" + case "sshconnectstep": step_type = "SSHConnectStep" + case "sshclosestep": step_type = "SSHCloseStep" # we remove this entry because it is used to determine which class to use for instantiation and # is not needed beyond that