"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/api/contrib/volume_transfer.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Train" series (latest release).

volume_transfer.py  (cinder-15.0.1):volume_transfer.py  (cinder-15.1.0)
skipping to change at line 63 skipping to change at line 63
def detail(self, req): def detail(self, req):
"""Returns a detailed list of transfers.""" """Returns a detailed list of transfers."""
return self._get_transfers(req, is_detail=True) return self._get_transfers(req, is_detail=True)
def _get_transfers(self, req, is_detail): def _get_transfers(self, req, is_detail):
"""Returns a list of transfers, transformed through view builder.""" """Returns a list of transfers, transformed through view builder."""
context = req.environ['cinder.context'] context = req.environ['cinder.context']
filters = req.params.copy() filters = req.params.copy()
LOG.debug('Listing volume transfers') LOG.debug('Listing volume transfers')
if 'name' in filters:
filters['display_name'] = filters.pop('name')
transfers = self.transfer_api.get_all(context, filters=filters, transfers = self.transfer_api.get_all(context, filters=filters,
sort_keys=['created_at', 'id'], sort_keys=['created_at', 'id'],
sort_dirs=['asc', 'asc']) sort_dirs=['asc', 'asc'])
transfer_count = len(transfers) transfer_count = len(transfers)
limited_list = common.limited(transfers, req) limited_list = common.limited(transfers, req)
if is_detail: if is_detail:
transfers = self._view_builder.detail_list(req, limited_list, transfers = self._view_builder.detail_list(req, limited_list,
transfer_count) transfer_count)
else: else:
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)