[PATCH storage 2/3] Fix tempfile.mkdtemp call.

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

 



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

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 2e1e778..545970c 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -202,7 +202,7 @@ class FS(DeviceFormat):
         if self.mountable:
             origMountPoint = self._mountpoint
 
-            (f, tmppath) = tempfile.mkdtemp(prefix='getsize', dir='/tmp')
+            tmppath = tempfile.mkdtemp(prefix='getsize', dir='/tmp')
             self.mount(mountpoint=tmppath)
             buf = os.statvfs(tmppath)
             self.unmount()
-- 
1.5.4.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux