From 10a3fc89546b18670558794b6278945c5b99c41c Mon Sep 17 00:00:00 2001 From: "redhat-qe[bot2]" <159281658+redhat-qe-bot2@users.noreply.github.com> Date: Thu, 9 Jan 2025 11:21:06 +0200 Subject: [PATCH] Fix deploy function of NNCP (#2267) (#2268) If the the deploy func fails, clean_up func of resource is called at the except section. But the args this call using wrong name. This has to be fixed, because otherwise the NNCP resource doesn't get cleaned_up upon failure. Signed-off-by: Harel Meir Co-authored-by: Harel Meir --- ocp_resources/node_network_configuration_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocp_resources/node_network_configuration_policy.py b/ocp_resources/node_network_configuration_policy.py index 530f7b79e5..4ab1bddcad 100644 --- a/ocp_resources/node_network_configuration_policy.py +++ b/ocp_resources/node_network_configuration_policy.py @@ -302,7 +302,7 @@ def deploy(self, wait=False): return self except Exception as exp: self.logger.error(exp) - super().__exit__(exception_type=None, exception_value=None, traceback=None) + super().__exit__() raise def clean_up(self):