From dc30490715fef30f417f30ca403489963ad2b90a Mon Sep 17 00:00:00 2001 From: MORITA Kazutaka Date: Mon, 13 Jul 2015 02:41:25 +0900 Subject: [PATCH] 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 --- cinder/tests/unit/test_sheepdog.py | 4 ++-- cinder/volume/drivers/sheepdog.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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' -- 2.45.2