]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Set driver version in Sheepdog driver
authorMORITA Kazutaka <morita.kazutaka@gmail.com>
Sun, 12 Jul 2015 17:41:25 +0000 (02:41 +0900)
committerMORITA Kazutaka <morita.kazutaka@gmail.com>
Sun, 12 Jul 2015 17:44:13 +0000 (02:44 +0900)
Sheepdog driver doesn't set a driver version because of
misspelling. 'dirver_version' should be 'driver_version'.

Closes-Bug: #1473757
Change-Id: If380d063fda4309bb0ae7bce2e613c696636e4f5

cinder/tests/unit/test_sheepdog.py
cinder/volume/drivers/sheepdog.py

index b0e138911a2b84431c93abe8b282156a74356f9d..358924b4a995d26073538879f54fae9783be4e93 100644 (file)
@@ -77,7 +77,7 @@ class SheepdogTestCase(test.TestCase):
         expected = dict(
             volume_backend_name='sheepdog',
             vendor_name='Open Source',
-            dirver_version=self.driver.VERSION,
+            driver_version=self.driver.VERSION,
             storage_protocol='sheepdog',
             total_capacity_gb=float(107287605248) / units.Gi,
             free_capacity_gb=float(107287605248 - 3623897354) / units.Gi,
@@ -93,7 +93,7 @@ class SheepdogTestCase(test.TestCase):
         expected = dict(
             volume_backend_name='sheepdog',
             vendor_name='Open Source',
-            dirver_version=self.driver.VERSION,
+            driver_version=self.driver.VERSION,
             storage_protocol='sheepdog',
             total_capacity_gb='unknown',
             free_capacity_gb='unknown',
index 43ec85d9d515e3463c852600dcf0977c4aaa030d..bd5dee3c29e1f026323709fb2776d34b6b915915 100644 (file)
@@ -245,7 +245,7 @@ class SheepdogDriver(driver.VolumeDriver):
             backend_name = self.configuration.safe_get('volume_backend_name')
         stats["volume_backend_name"] = backend_name or 'sheepdog'
         stats['vendor_name'] = 'Open Source'
-        stats['dirver_version'] = self.VERSION
+        stats['driver_version'] = self.VERSION
         stats['storage_protocol'] = 'sheepdog'
         stats['total_capacity_gb'] = 'unknown'
         stats['free_capacity_gb'] = 'unknown'