[f21/master] Avoid the possibility of a variable being unset before use (#1146585)
David Shea
dshea at redhat.com
Thu Sep 25 15:27:50 UTC 2014
---
pyanaconda/kickstart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index fadc501..5ae8f71 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -776,7 +776,7 @@ class LogVolData(commands.logvol.F20_LogVolData):
raise KickstartValueError(formatErrorMsg(self.lineno,
msg="The size \"%s\" is invalid." % self.size))
except TypeError:
- pass
+ size = Size(0)
if self.mountpoint == "swap":
ty = "swap"
--
2.1.0
More information about the anaconda-patches
mailing list