Loading cloudcontrol/node/hypervisor/lib.py +5 −5 Original line number Diff line number Diff line Loading @@ -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([]) Loading @@ -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): Loading @@ -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 Loading Loading
cloudcontrol/node/hypervisor/lib.py +5 −5 Original line number Diff line number Diff line Loading @@ -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([]) Loading @@ -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): Loading @@ -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 Loading