[master 2/6] Call superclass ctor a bit later to get size attrs set up first.

dwlehman installerbot-noreply at redhat.com
Tue Aug 4 18:29:47 UTC 2015


From: David Lehman <dlehman at redhat.com>

Related: rhbz#1245191
---
 blivet/devices/storage.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/devices/storage.py b/blivet/devices/storage.py
index 38af58b..fac2eea 100644
--- a/blivet/devices/storage.py
+++ b/blivet/devices/storage.py
@@ -104,8 +104,6 @@ def __init__(self, name, fmt=None, uuid=None,
         self.sysfsPath = sysfsPath
         self._partedDevice = None
 
-        super(StorageDevice, self).__init__(name, parents=parents)
-
         self._format = getFormat(None)
 
         # For non-existent devices, make sure the initial size is enough for
@@ -134,6 +132,8 @@ def __init__(self, name, fmt=None, uuid=None,
         self._protected = False
         self.controllable = not flags.testing
 
+        super(StorageDevice, self).__init__(name, parents=parents)
+
         self.format = fmt
         self.originalFormat = copy.deepcopy(self.format)
         self.fstabComment = ""


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/4ddf039b9c80c400049cccede7e8308e0c6b5142


More information about the anaconda-patches mailing list