:returns: List of Dictionaries with VG info
"""
- cmd = ['vgs', '--noheadings',
- '--unit=g', '-o',
- 'name,size,free,lv_count,uuid',
- '--separator', ':']
+ cmd = ['env', 'LC_ALL=C', 'LANG=C', 'vgs', '--noheadings', '--unit=g',
+ '-o', 'name,size,free,lv_count,uuid', '--separator', ':']
if no_suffix:
cmd.append('--nosuffix')
data["driver_version"] = self.VERSION
data["storage_protocol"] = 'local'
- data['total_capacity_gb'] = float(self.vg.vg_size.replace(',', '.'))
- data['free_capacity_gb'] =\
- float(self.vg.vg_free_space.replace(',', '.'))
+ data['total_capacity_gb'] = float(self.vg.vg_size)
+ data['free_capacity_gb'] = float(self.vg.vg_free_space)
data['reserved_percentage'] = self.configuration.reserved_percentage
data['QoS_support'] = False
data['location_info'] =\
data["driver_version"] = self.VERSION
data["storage_protocol"] = 'iSCSI'
- data['total_capacity_gb'] = float(self.vg.vg_size.replace(',', '.'))
+ data['total_capacity_gb'] = float(self.vg.vg_size)
data['free_capacity_gb'] = float(self.vg.vg_free_space)
data['reserved_percentage'] = self.configuration.reserved_percentage
data['QoS_support'] = False
data["vendor_name"] = 'Open Source'
data["driver_version"] = self.VERSION
data["storage_protocol"] = 'iSER'
- data['total_capacity_gb'] = float(self.vg.vg_size.replace(',', '.'))
- data['free_capacity_gb'] =\
- float(self.vg.vg_free_space.replace(',', '.'))
+ data['total_capacity_gb'] = float(self.vg.vg_size)
+ data['free_capacity_gb'] = float(self.vg.vg_free_space)
data['reserved_percentage'] = self.configuration.reserved_percentage
data['QoS_support'] = False