FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(api): update manual job status when playing it · python-gitlab/python-gitlab@9440a32 · GitHub

Repository navigation

Commit 9440a32

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL