]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix unit suffix and add no_suffix option.
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 19 Jul 2013 00:30:36 +0000 (18:30 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 24 Jul 2013 22:58:54 +0000 (16:58 -0600)
commitf4a9429cd01bbcd799083c76fc8b83c1a400ebb8
treed906335c3023256e9c9aac8c70b7ba0973a4677c
parent767a018880e234f5355f6a9777cc22be4bb6e5d0
Fix unit suffix and add no_suffix option.

In Cinder we've been using gibibytes, however
we have code in some places using Gigabytes, the brick
LVM code was one of those places.

This change sets the default suffix to gibibytes/mibibytes (1024 based)
and also provides an option to omit the suffix from the response now
that we can say that we're consistent in what is expected.

Change-Id: Id6274ba732bbdf484c5544e005155aebd68eaf2f
cinder/brick/local_dev/lvm.py
cinder/tests/brick/test_brick_lvm.py