[blivet][rhel7-branch][PATCH] Return early when setting new size for non-existent partition.

David Lehman dlehman at redhat.com
Fri Sep 26 16:55:49 UTC 2014


Related: rhbz#978266
---
 blivet/devices.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/blivet/devices.py b/blivet/devices.py
index 4496ad9..b22ee25 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -1979,6 +1979,7 @@ class PartitionDevice(StorageDevice):
             self._size = newsize
             self.req_size = newsize
             self.req_base_size = newsize
+            return
 
         if newsize > self.disk.size:
             raise ValueError("partition size would exceed disk size")
-- 
1.9.3



More information about the anaconda-patches mailing list