Commit e501f741 authored by Antoine Millet's avatar Antoine Millet

Renamed SharedStorage as DummyStorage

In order to be reused by another piece of code.
parent 94c17131
......@@ -480,13 +480,13 @@ class Storage(object):
StringIO(self.lv_storage.XMLDesc(0))).get('type')
class SharedStorageVolumeDispenser(object):
class DummyStorageVolumeDispenser(object):
def __init__(self, storage):
self.storage = storage
def get(self, name):
return SharedVolume(self.storage, name)
return DummyVolume(self.storage, name)
def itervalues(self):
return iter([])
......@@ -500,7 +500,7 @@ class SharedStorage(Storage):
:param lv_storage: Libvirt pool storage instance
"""
super(SharedStorage, self).__init__(lv_storage)
self.volumes = SharedStorageVolumeDispenser(self)
self.volumes = DummyStorageVolumeDispenser(self)
@property
def is_shared(self):
......@@ -527,8 +527,8 @@ class Volume(object):
self.capacity, self.allocation = self.lv_volume.info()[1:]
class SharedVolume(object):
"""Shared volume abstraction."""
class DummyVolume(object):
"""Dummy volume abstraction."""
def __init__(self, storage, name):
self.storage = storage
self.path, self.capacity, self.allocation = None, None, None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment