Fix the id attr for share group type access repr
The correct attribute name for the share group type access repr is share_group_type_id, not id. This patch set fixes that. Closes-Bug: #1953670 Change-Id: I651f3cc6429801db4c04813a60ddb4ec2871f2a1
This commit is contained in:
parent
4ec4c58567
commit
dcb25e54e9
@ -31,7 +31,8 @@ class ShareGroupTypeAccessTest(utils.TestCase):
|
||||
super(ShareGroupTypeAccessTest, self).setUp()
|
||||
self.manager = type_access.ShareGroupTypeAccessManager(
|
||||
fake.FakeClient())
|
||||
fake_group_type_access_info = {'id': fake.ShareGroupTypeAccess.id}
|
||||
fake_group_type_access_info = {
|
||||
'share_group_type_id': fake.ShareGroupTypeAccess.id}
|
||||
self.share_group_type_access = type_access.ShareGroupTypeAccess(
|
||||
self.manager, fake_group_type_access_info, loaded=True)
|
||||
|
||||
|
@ -26,7 +26,7 @@ SG_GRADUATION_VERSION = "2.55"
|
||||
|
||||
class ShareGroupTypeAccess(common_base.Resource):
|
||||
def __repr__(self):
|
||||
return "<Share Group Type Access: %s>" % self.id
|
||||
return "<Share Group Type Access: %s>" % self.share_group_type_id
|
||||
|
||||
|
||||
class ShareGroupTypeAccessManager(base.ManagerWithFind):
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- Launchpad `bug 1953670 <https://bugs.launchpad.net/python-manilaclient/+bug/1953670>`_
|
||||
has been fixed by updating the attribute name for the share group type access
|
||||
repr to be share_group_type_id.
|
Loading…
Reference in New Issue
Block a user