diff --git a/os_brick/caches/opencas.py b/os_brick/caches/opencas.py index 8bd799e6a..fee3c9919 100644 --- a/os_brick/caches/opencas.py +++ b/os_brick/caches/opencas.py @@ -88,7 +88,7 @@ class OpenCASEngine(executor.Executor, caches.CacheEngineBase): fields = line.split() return fields[5] - raise Exception('Cannot find emulated device.') + raise exception.BrickException('Cannot find emulated device.') def _get_mapped_coredev(self, casdev): cmd = ['casadm', '-L'] @@ -102,7 +102,7 @@ class OpenCASEngine(executor.Executor, caches.CacheEngineBase): fields = line.split() return (fields[1], fields[2]) - raise Exception('Cannot find core device.') + raise exception.BrickException('Cannot find core device.') def _map_casdisk(self, core): cmd = ['casadm', '-A', '-i', self.cache_id, '-d', core]