]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix volume capacity reporting
authorChristoph Kassen <c.kassen@telekom.de>
Wed, 6 Mar 2013 18:37:42 +0000 (19:37 +0100)
committerChristoph Kassen <c.kassen@telekom.de>
Fri, 8 Mar 2013 08:06:59 +0000 (09:06 +0100)
commit6c8d860507a66424cf47b46380478b3cc565359e
tree2cbe94ed9833f6207f95c3f08c20a9561bca6da0
parent4c52cd0b020c8221185454a87d6d03d732d2c2f4
Fix volume capacity reporting

cinder-volume crashes when the decimal point is not represented by a dot
but by a comma instead. This crash happens for example with the de_DE
locale.

This change replaces any comma appearing in the vgs command output with
a dot.

Test case added.

Fixes: bug #1151684
Change-Id: I831055fb7fd206a8560688ec4c25d766e92ee0f0
cinder/tests/test_volume.py
cinder/volume/drivers/lvm.py