]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Delete default volume size 100M in drivers
authorAnton Arefiev <aarefiev@mirantis.com>
Mon, 15 Dec 2014 10:33:38 +0000 (12:33 +0200)
committerAnton Arefiev <aarefiev@mirantis.com>
Tue, 16 Dec 2014 11:08:03 +0000 (13:08 +0200)
commit632f939b9884cc917650f83e50930fd702a05119
tree6981415a59f12704186f6be72e8f39dc5bcdc465
parent5259bd7f6010f17a129e6bbb1d8e486e93b33b03
Delete default volume size 100M in drivers

There is check: if volume size == 0 we set default value to 100M,
it uses only in tests and it's little bit confusing.Use code only
for tests in drivers is bad practice.

Also the create volume flow already won't let user to create
a volume  with size 0. So it was decided to remove this check.

Change-Id: I620ae8fff4634c60a02329f22d1a0343b27aa955
cinder/tests/test_gpfs.py
cinder/tests/test_scality.py
cinder/volume/drivers/ibm/gpfs.py
cinder/volume/drivers/lvm.py
cinder/volume/drivers/rbd.py
cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py
cinder/volume/drivers/san/solaris.py
cinder/volume/drivers/scality.py