[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 5/5] Setting up lvs should never fail



As we only do lv handling for complete vgs now, setting up the lv
should never fail.
---
 storage/devicetree.py |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 1d17126..99adb06 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1524,13 +1524,7 @@ class DeviceTree(object):
                                                    logSize=log_size,
                                                    exists=True)
                 self._addDevice(lv_device)
-
-                try:
-                    lv_device.setup()
-                    ret = True
-                except DeviceError as (msg, name):
-                    log.info("setup of %s failed: %s"
-                                        % (lv_device.name, msg))
+                lv_device.setup()
 
         return ret
 
-- 
1.7.0.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]