Skip to content

Commit

Permalink
Merge "typing: Add (more) missing proxy arguments"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Feb 26, 2025
2 parents 6ebc4d7 + 73a7c8e commit 7cc12cd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions openstack/compute/v2/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,7 @@ def update_volume_attachment(

return self._update(
_volume_attachment.VolumeAttachment,
None,
id=volume_id,
server_id=server_id,
volume_id=new_volume_id,
Expand Down
1 change: 1 addition & 0 deletions openstack/identity/v3/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def update_domain_config(self, domain, **attrs):
domain_id = resource.Resource._get_id(domain)
return self._update(
_domain_config.DomainConfig,
None,
domain_id=domain_id,
**attrs,
)
Expand Down
1 change: 1 addition & 0 deletions openstack/image/v2/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ def update_member(self, member, image, **attrs):
image_id = resource.Resource._get_id(image)
return self._update(
_member.Member,
None,
member_id=member_id,
image_id=image_id,
**attrs,
Expand Down
1 change: 1 addition & 0 deletions openstack/tests/unit/compute/v2/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ def test_volume_attachment_update(self):
volume_attachment.VolumeAttachment,
method_args=[],
method_kwargs={'server': 'server_id', 'volume': 'volume_id'},
expected_args=[None],
expected_kwargs={
'id': 'volume_id',
'server_id': 'server_id',
Expand Down
2 changes: 1 addition & 1 deletion openstack/tests/unit/identity/v3/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_domain_config_update(self):
domain_config.DomainConfig,
method_args=['domain_id'],
method_kwargs={},
expected_args=[],
expected_args=[None],
expected_kwargs={
'domain_id': 'domain_id',
},
Expand Down
2 changes: 1 addition & 1 deletion openstack/tests/unit/image/v2/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def test_member_update(self):
"openstack.proxy.Proxy._update",
self.proxy.update_member,
method_args=['member_id', 'image_id'],
expected_args=[_member.Member],
expected_args=[_member.Member, None],
expected_kwargs={'member_id': 'member_id', 'image_id': 'image_id'},
)

Expand Down

0 comments on commit 7cc12cd

Please sign in to comment.