File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def wait_until_finished(
30
30
"""Wait until the specific action has status=finished.
31
31
32
32
:param max_retries: int Specify how many retries will be performed before an ActionTimeoutException will be raised.
33
+ :param timeout: Timeout in seconds before an ActionTimeoutException will be raised.
33
34
:raises: ActionFailedException when action is finished with status==error
34
35
:raises: ActionTimeoutException when Action is still in status==running after max_retries or timeout is reached.
35
36
"""
@@ -207,7 +208,8 @@ def wait_for_function(
207
208
# pylint: disable=protected-access
208
209
if wait (self ._client ._poll_interval_func (retries )):
209
210
raise ActionGroupException (
210
- [ActionTimeoutException (action = action ) for action in running ]
211
+ failed = [ActionTimeoutException (action ) for action in running ],
212
+ completed = completed ,
211
213
)
212
214
213
215
retries += 1
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ class ActionTimeoutException(ActionException):
103
103
class ActionGroupException (HCloudException ):
104
104
"""An exception for a group of actions"""
105
105
106
- def __init__ (self , exceptions : list [ActionException ]):
106
+ def __init__ (
107
+ self ,
108
+ failed : list [ActionException ],
109
+ completed : list [BoundAction ] | None = None ,
110
+ ):
107
111
super ().__init__ ("Multiple pending actions failed" )
108
- self .exceptions = exceptions
112
+ self .failed = failed
113
+ self .completed = completed
You can’t perform that action at this time.
0 commit comments