Skip to content

Commit

Permalink
Add ProjectRequest cleanup (#2172)
Browse files Browse the repository at this point in the history
Co-authored-by: Debarati Basu-Nag <[email protected]>
  • Loading branch information
jpeimer and dbasunag authored Oct 15, 2024
1 parent 4a2518a commit 4b3776f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocp_resources/project_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from typing import Any, Optional
from ocp_resources.resource import Resource
from ocp_resources.project_project_openshift_io import Project


class ProjectRequest(Resource):
Expand Down Expand Up @@ -42,3 +43,6 @@ def to_dict(self) -> None:
self.res["displayName"] = self.display_name

# End of generated code

def clean_up(self, wait: bool = True, timeout: Optional[int] = None) -> bool:
return Project(name=self.name).clean_up(wait=wait, timeout=timeout)

0 comments on commit 4b3776f

Please sign in to comment.