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

[PATCH] Fix 2 variable references in formats/fs.py



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

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 7c0b19b..7a2f1a9 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -369,7 +369,7 @@ class FS(DeviceFormat):
                 w.pop()
 
         if ret.rc:
-            raise FormatCreateError("format failed: %s" % rc, self.device)
+            raise FormatCreateError("format failed: %s" % ret.rc, self.device)
 
         self.exists = True
         self.notifyKernel()
@@ -478,7 +478,7 @@ class FS(DeviceFormat):
                 w.pop()
 
         if ret.rc:
-            raise FSResizeError("resize failed: %s" % rc, self.device)
+            raise FSResizeError("resize failed: %s" % ret.rc, self.device)
 
         self.doCheck(intf=intf)
 
-- 
1.7.0.1


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