From 3eda9f9afa134633c96711d4e36445c195c05341 Mon Sep 17 00:00:00 2001 From: Aastha-spec-tech Date: Fri, 29 May 2026 01:11:56 +0530 Subject: [PATCH] fix(node_actions): replace unstructured print_exc with logging in baremetal reboot (#1335) Signed-off-by: Aastha-spec-tech Co-authored-by: Paige Patton <64206430+paigerube14@users.noreply.github.com> --- krkn/scenario_plugins/node_actions/bm_node_scenarios.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/krkn/scenario_plugins/node_actions/bm_node_scenarios.py b/krkn/scenario_plugins/node_actions/bm_node_scenarios.py index 2a331ad8..69524cf4 100644 --- a/krkn/scenario_plugins/node_actions/bm_node_scenarios.py +++ b/krkn/scenario_plugins/node_actions/bm_node_scenarios.py @@ -253,9 +253,9 @@ class bm_node_scenarios(abstract_node_scenarios): " %s. Test Failed. Most errors are caused by " "an incorrect ipmi address or login" % (e) ) - traceback.print_exc() + logging.error(traceback.format_exc()) logging.error("node_reboot_scenario injection failed!") - raise e + raise self.affected_nodes_status.affected_nodes.append(affected_node) def node_disk_detach_attach_scenario(self, instance_kill_count, node, timeout, duration):