[blivet:master 07/11] Move line that might throw an MDRaid exception inside try block (#1085474)
mulhern
amulhern at redhat.com
Fri Apr 11 15:23:08 UTC 2014
Resolves: fed#1085474
If any of the raid or mdraid methods raise an exception the size will be 0.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devices.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 53bfbe3..f6ed975 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3295,9 +3295,9 @@ class MDRaidArrayDevice(ContainerDevice):
if smallestMember is None:
return 0
- smallestMemberSize = smallestMember.size - self.superBlockSize
if not self.exists or not self.partedDevice:
try:
+ smallestMemberSize = smallestMember.size - self.superBlockSize
size = self.level.get_size(self.memberDevices,
smallestMemberSize,
self.chunkSize)
--
1.8.3.1
More information about the anaconda-patches
mailing list