Skip to content

Commit

Permalink
Fix deploy function of NNCP (#2267) (#2268)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Harel Meir <[email protected]>
  • Loading branch information
redhat-qe-bot2 and hmeir authored Jan 9, 2025
1 parent 995f9f3 commit 10a3fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocp_resources/node_network_configuration_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 10a3fc8

Please sign in to comment.