Skip to content

Instantly share code, notes, and snippets.

@leseb
Created May 2, 2013 09:32
Show Gist options
  • Save leseb/5501185 to your computer and use it in GitHub Desktop.
Save leseb/5501185 to your computer and use it in GitHub Desktop.
diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py
index c9016bf..9365b86 100644
--- a/cinder/volume/drivers/rbd.py
+++ b/cinder/volume/drivers/rbd.py
@@ -54,8 +54,9 @@ class RBDDriver(driver.VolumeDriver):
def __init__(self, *args, **kwargs):
super(RBDDriver, self).__init__(*args, **kwargs)
self.configuration.append_config_values(rbd_opts)
+ volume_backend_name = self.configuration.safe_get('volume_backend_name') or 'RBD'
self._stats = dict(
- volume_backend_name='RBD',
+ volume_backend_name=volume_backend_name,
vendor_name='Open Source',
driver_version=VERSION,
storage_protocol='ceph',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment