Listing objects to return Munch objects

list_objects was returning a list of dict objects, being incosistent
with other listing methods in OpenStackCloud. It is now consistent,
returning a list of Munch objects.

Story: #2003568
Task: #24861

Change-Id: I39ca8d6221aa34db1f4ba983d169b7701d0328d8
This commit is contained in:
Samuel de Medeiros Queiroz 2018-08-27 11:45:09 -03:00
parent f22b9a88db
commit c340e203e4

View File

@ -7767,8 +7767,9 @@ class OpenStackCloud(_normalize.Normalizer):
:raises: OpenStackCloudException on operation error.
"""
return self._object_store_client.get(
data = self._object_store_client.get(
container, params=dict(format='json'))
return self._get_and_munchify(None, data)
def delete_object(self, container, name, meta=None):
"""Delete an object from a container.