"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/dell_emc/plugins/vmax/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 631 skipping to change at line 631
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 = { pool_stat = {
'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,
'snapshot_support': True, 'snapshot_support': True,
'create_share_from_snapshot_support': True, 'create_share_from_snapshot_support': True,
'revert_to_snapshot_support': False, 'revert_to_snapshot_support': False,
'ipv6_support': True 'ipv6_support': True
} }
stats_dict['pools'].append(pool_stat) stats_dict['pools'].append(pool_stat)
if not stats_dict['pools']: if not stats_dict['pools']:
 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)