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

[PATCH] Don't traceback from failure finding minimum fs size. (#494070)



---
 storage/formats/fs.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 8b54a82..0e155eb 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -741,7 +741,9 @@ class Ext2FS(FS):
                 size = int(minSize) / 1024.0
 
             if size is None:
-                raise FSError("failed to get minimum fs size")
+                log.warning("failed to get minimum size for %s filesystem "
+                            "on %s" % (self.type, self.device))
+                size = self._minSize
 
         return size
 
-- 
1.6.0.6


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