]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixes total_capacity_gb value in CloudByte driver.
authoryogeshprasad <yogesh.prasad@cloudbyte.com>
Wed, 11 Feb 2015 13:52:33 +0000 (19:22 +0530)
committeryogeshprasad <yogesh.prasad@cloudbyte.com>
Thu, 12 Feb 2015 06:55:21 +0000 (12:25 +0530)
commit59c992919064b06daa3c0ac7092d438e527ff7f7
tree9aab772cc983731529fe7ed1dd5e8bc01be16749
parentd4e75340ecd1b8a070b764626667ae47d561e26d
Fixes total_capacity_gb value in CloudByte driver.

CloudByte storage returns total capacity value in two formats. One is
numeric and the other is alphanumeric.

Previously data['total_capacity_gb'] was referring the alphanumeric value
& now it is referring to the correct numeric value.

In addition, changes were made to test_cloudbyte.py to unit test
free_capacity_gb and total_capacity_gb.

Closes-Bug: 1420746

Change-Id: I601c2a78c1727bc815771ca26aea928fa2887d09
cinder/tests/test_cloudbyte.py
cinder/volume/drivers/cloudbyte/cloudbyte.py