Skip to content

Commit

Permalink
Fix deploy function of NNCP (#2267)
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 <hmeir@redhat.com>
  • Loading branch information
hmeir authored and RedHatQE committed Jan 9, 2025
1 parent 995f9f3 commit f86d960
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 f86d960

Please sign in to comment.