Skip to content

Commit

Permalink
Set target size when setting other size attrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman committed Jul 20, 2015
1 parent 0e5ee53 commit a740ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/storage.py
Expand Up @@ -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)
Expand All @@ -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 = []

Expand Down

0 comments on commit a740ef1

Please sign in to comment.