Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 29c2c44

Browse files
author
Oleiade
committed
Update WorkflowExecution history method to support a domain parameter
1 parent 7416ea4 commit 29c2c44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

swf/models/workflow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,10 @@ def history(self, *args, **kwargs):
409409
:returns: The workflow execution complete events history
410410
:rtype: swf.models.event.History
411411
"""
412+
domain = kwargs.pop('domain', self.domain)
413+
412414
response = self.connection.get_workflow_execution_history(
413-
self.domain.name,
415+
domain.name,
414416
self.run_id,
415417
self.workflow_id,
416418
**kwargs
@@ -420,7 +422,7 @@ def history(self, *args, **kwargs):
420422
next_page = response.get('nextPageToken')
421423
while next_page is not None:
422424
response = self.connection.get_workflow_execution_history(
423-
self.domain.name,
425+
domain.name,
424426
self.run_id,
425427
self.workflow_id,
426428
next_page_token=next_page,

0 commit comments

Comments
 (0)