After the if statement is done executing, size is always equal to
self.targetSize if the first two conditions are True.
The difference is that size is assigned even in the case where the
assignment does not change the value.
Signed-off-by: mulhern <amulhern(a)redhat.com>
---
blivet/devices.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 1243f5f..45305a9 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -852,7 +852,7 @@ class StorageDevice(Device):
self._size = self.currentSize
size = self._size
- if self.exists and self.resizable and self.targetSize != size:
+ if self.exists and self.resizable:
size = self.targetSize
return size
--
1.8.3.1