"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/dell_emc/plugins/vnx/connection.py" between
manila-8.1.3.tar.gz and manila-8.1.4.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Stein" series (maintained release).

connection.py  (manila-8.1.3):connection.py  (manila-8.1.4)
skipping to change at line 626 skipping to change at line 626
stats_dict['pools'] = [] stats_dict['pools'] = []
status, pools = self._get_context('StoragePool').get_all() status, pools = self._get_context('StoragePool').get_all()
for name, pool in pools.items(): for name, pool in pools.items():
if not self.pools or pool['name'] in self.pools: if not self.pools or pool['name'] in self.pools:
total_size = float(pool['total_size']) total_size = float(pool['total_size'])
used_size = float(pool['used_size']) used_size = float(pool['used_size'])
pool_stat = dict( pool_stat = dict(
pool_name=pool['name'], pool_name=pool['name'],
total_capacity_gb=total_size, total_capacity_gb=enas_utils.mb_to_gb(total_size),
free_capacity_gb=total_size - used_size, free_capacity_gb=enas_utils.mb_to_gb(
total_size - used_size),
qos=False, qos=False,
reserved_percentage=self.reserved_percentage, reserved_percentage=self.reserved_percentage,
) )
stats_dict['pools'].append(pool_stat) stats_dict['pools'].append(pool_stat)
if not stats_dict['pools']: if not stats_dict['pools']:
message = _("Failed to update storage pool.") message = _("Failed to update storage pool.")
LOG.error(message) LOG.error(message)
raise exception.EMCVnxXMLAPIError(err=message) raise exception.EMCVnxXMLAPIError(err=message)
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

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