Skip to content

Commit fad209f

Browse files
author
Grégoire Deveaux
authored
Add timeout param to provider init
1 parent 75adfea commit fad209f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudbees/provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
from rox.server.rox_options import RoxOptions
1010

1111
class CloudbeesProvider(AbstractProvider):
12-
def __init__(self, api_key="", rox_options=None):
12+
def __init__(self, api_key="", rox_options=None, timeout=None):
1313
if api_key == "":
1414
raise Exception("Must provide apiKey")
1515

1616
if rox_options is None:
1717
rox_options = RoxOptions()
18-
Rox.setup(api_key, rox_options).result()
18+
Rox.setup(api_key, rox_options).result(timeout)
1919

2020
def get_metadata(self) -> Metadata:
2121
return Metadata("Cloudbees")

0 commit comments

Comments
 (0)