From: David Lehman <dlehman(a)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/4ddf039b9c80c400049cccede7e8...