Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit016d90c

Browse files
w7089nejch
w7089
authored andcommitted
fix(cli): add _from_parent_attrs to user-project manager (#2558)
1 parent45b8930 commit016d90c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎gitlab/v4/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646

4747
self.mgr_cls._path=self.mgr_cls._path.format(**self.parent_args)
4848
self.mgr=self.mgr_cls(gl)
49-
49+
self.mgr._from_parent_attrs=self.parent_args
5050
ifself.mgr_cls._types:
5151
forattr_name,type_clsinself.mgr_cls._types.items():
5252
ifattr_nameinself.args.keys():

‎gitlab/v4/objects/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def list(self, **kwargs: Any) -> Union[RESTObjectList, List[RESTObject]]:
666666
ifself._parent:
667667
path=f"/users/{self._parent.id}/projects"
668668
else:
669-
path=f"/users/{kwargs['user_id']}/projects"
669+
path=f"/users/{self._from_parent_attrs['user_id']}/projects"
670670
returnListMixin.list(self,path=path,**kwargs)
671671

672672

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp