From: MORITA Kazutaka Date: Sun, 12 Jul 2015 17:41:25 +0000 (+0900) Subject: Set driver version in Sheepdog driver X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=dc30490715fef30f417f30ca403489963ad2b90a;p=openstack-build%2Fcinder-build.git Set driver version in Sheepdog driver Sheepdog driver doesn't set a driver version because of misspelling. 'dirver_version' should be 'driver_version'. Closes-Bug: #1473757 Change-Id: If380d063fda4309bb0ae7bce2e613c696636e4f5 --- diff --git a/cinder/tests/unit/test_sheepdog.py b/cinder/tests/unit/test_sheepdog.py index b0e138911..358924b4a 100644 --- a/cinder/tests/unit/test_sheepdog.py +++ b/cinder/tests/unit/test_sheepdog.py @@ -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', diff --git a/cinder/volume/drivers/sheepdog.py b/cinder/volume/drivers/sheepdog.py index 43ec85d9d..bd5dee3c2 100644 --- a/cinder/volume/drivers/sheepdog.py +++ b/cinder/volume/drivers/sheepdog.py @@ -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'