]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
smbfs: fix invalid check for smbfs_used_ratio correctness
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 10 Jun 2015 20:01:55 +0000 (23:01 +0300)
committerDmitry Guryanov <dguryanov@parallels.com>
Tue, 30 Jun 2015 16:06:08 +0000 (19:06 +0300)
commitd79b2a2589ffb21e80e29eb909a021d4f1700374
tree262ebd1d493ceb9e2d404795d445550fc8fd4177
parent87016e624b8dd5574d0c678e5869510b1358a7da
smbfs: fix invalid check for smbfs_used_ratio correctness

The check allowed to specify values greater than 1
because of a error in condition. So I've fixed the
condition and updated unit test, so it would catch
the bug.

Closes-Bug: #1469249

Change-Id: I34f4128a8a80ae57be5c0af90308d2d517022d8e
cinder/tests/unit/test_smbfs.py
cinder/volume/drivers/smbfs.py