[master 3/10] Set target size when setting other size attrs.
dwlehman
installerbot-noreply at redhat.com
Mon Jul 20 21:39:24 UTC 2015
From: David Lehman <dlehman at redhat.com>
---
blivet/devices/storage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices/storage.py b/blivet/devices/storage.py
index 69d5274..a54c32a 100644
--- a/blivet/devices/storage.py
+++ b/blivet/devices/storage.py
@@ -111,6 +111,7 @@ def __init__(self, name, fmt=None, uuid=None,
# The size will be overridden by a call to updateSize at the end of this
# method for existing and active devices.
self._size = Size(util.numeric_type(size))
+ self._targetSize = self._size
self._currentSize = self._size if self.exists else Size(0)
self.major = util.numeric_type(major)
self.minor = util.numeric_type(minor)
@@ -126,7 +127,6 @@ def __init__(self, name, fmt=None, uuid=None,
self.format = fmt
self.originalFormat = copy.deepcopy(self.format)
self.fstabComment = ""
- self._targetSize = self._size
self.deviceLinks = []
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/a740ef1005fe4a9976d417b745d6b99a7d0aa507
More information about the anaconda-patches
mailing list