Return export_locations as a list
export_locations is expected to be a list of strings. Previously it was returned as a string representation of a list, which makes it impossible to select the location with get_attr. Story: 2011146 Task: 50283 Closes-Bug: 2068490 Change-Id: I530ee92cb3f1fac27bbdad7387275c8a265a125d
This commit is contained in:
parent
a6e8a3866e
commit
d22f56bba1
@ -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):
|
||||
|
@ -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'))
|
||||
|
9
releasenotes/notes/story-2011146-07db485192f8c2f3.yaml
Normal file
9
releasenotes/notes/story-2011146-07db485192f8c2f3.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user