8000 fix(api): update manual job status when playing it · python-gitlab/python-gitlab@9440a32 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9440a32

Browse files
1acenejch
authored andcommitted
fix(api): update manual job status when playing it
1 parent c631eeb commit 9440a32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitlab/v4/objects/jobs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def play(self, **kwargs: Any) -> None:
6565
GitlabJobPlayError: If the job could not be triggered
6666
"""
6767
path = f"{self.manager.path}/{self.encoded_id}/play"
68-
self.manager.gitlab.http_post(path, **kwargs)
68+
result = self.manager.gitlab.http_post(path, **kwargs)
69+
if TYPE_CHECKING:
70+
assert isinstance(result, dict)
71+
self._update_attrs(result)
6972

7073
@cli.register_custom_action("ProjectJob")
7174
@exc.on_http_error(exc.GitlabJobEraseError)

0 commit comments

Comments
 (0)
0