[PATCH storage 1/3] Initialize attribute _mountpoint before using it

[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 bc183c2..2e1e778 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -155,11 +155,11 @@ class FS(DeviceFormat):
 
         # filesystem size does not necessarily equal device size
         self._size = kwargs.get("size")
+        self._mountpoint = None     # the current mountpoint when mounted
         if self.exists:
             self._size = self._getExistingSize()
 
         self._targetSize = self._size
-        self._mountpoint = None     # the current mountpoint when mounted
 
     def _setTargetSize(self, newsize):
         """ Set a target size for this filesystem. """
-- 
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