Performing a POST on /shares and /snapshots returns the sparse object instead of a detailed object. This is inconsistent with other openstack projects (including cinder) and should change.
As an example, a POST on /shares currently returns:
'share': {
'name': 'Share Test Name',
'id': '1',
'links': [
{
'href': 'http://localhost/v1/fake/shares/1',
'rel': 'self'
},
{
'href': 'http://localhost/fake/shares/1',
'rel': 'bookmark'
}
],
}
but should return:
'share': {
'name': 'Share Test Name',
'id': '1',
'availability_zone': 'fakeaz',
'description': 'displaydesc',
'export_location': 'fake_location',
'project_id': 'fakeproject',
'host': 'fakehost',
'created_at': datetime.datetime(1, 1, 1, 1, 1, 1),
'share_proto': 'fakeproto',
'metadata': {},
'size': 1,
'snapshot_id': '2',
'share_network_id': None,
'status': 'fakestatus',
'volume_type': '1',
'links': [
{
'href': 'http://localhost/v1/fake/shares/1',
'rel': 'self'
},
{
'href': 'http://localhost/fake/shares/1',
'rel': 'bookmark'
}
],
}
Fix proposed to branch: master /review. openstack. org/119562
Review: https:/