]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Brick LVM: Handle space info as numeric types
authorEric Harney <eharney@redhat.com>
Fri, 3 Jan 2014 16:19:42 +0000 (11:19 -0500)
committerEric Harney <eharney@redhat.com>
Thu, 30 Jan 2014 15:22:23 +0000 (10:22 -0500)
commitcf9915e363924c49a9039543c85c8fdb5322527b
tree720d3747ddf132b1e16bc314125b58722b4c77ee
parentec44eaa4c9a975c371e06fd0514f5c5d567beb82
Brick LVM: Handle space info as numeric types

Rather than relying on callers to cast values from the VG object
to float, always create them as floats up front.

This removes the nosuffix option used with the LVM commands in
Brick, as it does not appear to be used.

Also removes unneeded self.vg_pool_name variable.

Change-Id: Ic19ce206bc8069071e3c2d9e58ba5393119e9b4d
cinder/brick/local_dev/lvm.py
cinder/tests/brick/fake_lvm.py
cinder/tests/brick/test_brick_lvm.py
cinder/volume/drivers/lvm.py
cinder/volume/utils.py