The vg_free_space field is always assigned a float, so additional casts
are not necessary.
Change-Id: Ic2af78ba7dbd7388cc071fc2f0ea876a1558d0e9
self.update_volume_group_info()
# leave 5% free for metadata
- return "%sg" % (float(self.vg_free_space) * 0.95)
+ return "%sg" % (self.vg_free_space * 0.95)
def create_thin_pool(self, name=None, size_str=None):
"""Creates a thin provisioning pool for this VG.
return free_capacity
def vg_mirror_size(self, mirror_count):
- return (float(self.vg_free_space) /
- (mirror_count + 1))
+ return (self.vg_free_space / (mirror_count + 1))