Skip to content

Commit c38dd06

Browse files
authored
Merge pull request #58 from ibesso-rh/add_timeout_to_project_request_init
add timeout arg to ProjectRequest.__init__
2 parents 6570e5b + f727e20 commit c38dd06

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

ocp_resources/project.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ocp_resources.resource import Resource
1+
from ocp_resources.resource import TIMEOUT, Resource
22
from ocp_resources.utils import TimeoutExpiredError, nudge_delete
33

44

@@ -23,13 +23,8 @@ class ProjectRequest(Resource):
2323

2424
api_group = Resource.ApiGroup.PROJECT_OPENSHIFT_IO
2525

26-
def __init__(
27-
self,
28-
name,
29-
client=None,
30-
teardown=True,
31-
):
32-
super().__init__(name=name, client=client, teardown=teardown)
26+
def __init__(self, name, client=None, teardown=True, timeout=TIMEOUT):
27+
super().__init__(name=name, client=client, teardown=teardown, timeout=timeout)
3328

3429
def clean_up(self):
3530
Project(name=self.name).delete(wait=True)

0 commit comments

Comments
 (0)