Merge "Return export_locations as a list"

This commit is contained in:
Zuul 2024-09-29 05:25:42 +00:00 committed by Gerrit Code Review
commit 97d42cf45d
3 changed files with 12 additions and 3 deletions

View File

@ -204,8 +204,8 @@ class ManilaShare(resource.Resource):
return
if name == self.EXPORT_LOCATIONS_ATTR:
attr = self._request_export_locations()
else:
attr = getattr(self._request_share(), name)
return attr
attr = getattr(self._request_share(), name)
return str(attr)
def handle_create(self):

View File

@ -225,7 +225,7 @@ class ManilaShareTest(common.HeatTestCase):
DummyShareExportLocation()]
self.assertEqual('az', share.FnGetAtt('availability_zone'))
self.assertEqual('host', share.FnGetAtt('host'))
self.assertEqual("['el']", share.FnGetAtt('export_locations'))
self.assertEqual(['el'], share.FnGetAtt('export_locations'))
self.assertEqual('id', share.FnGetAtt('share_server_id'))
self.assertEqual('ca', share.FnGetAtt('created_at'))
self.assertEqual('s', share.FnGetAtt('status'))

View File

@ -0,0 +1,9 @@
---
upgrade:
- |
``OS::Manila::Share`` attribute ``export_locations`` will now be a list of
export paths
fixes:
- |
``OS::Manila::Share`` attribute ``export_locations`` will now be a list of
export paths