[PATCH] mem may not exist when it's printed out in these error messages.

Brian C. Lane bcl at redhat.com
Fri Oct 25 16:20:59 UTC 2013


On Fri, Oct 25, 2013 at 10:05:30AM -0400, Chris Lumens wrote:
> ---
>  pyanaconda/kickstart.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index 54da136..522022f 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -1189,10 +1189,10 @@ class RaidData(commands.raid.F18_RaidData):
>                      dev = None
>  
>              if dev and dev.format.type != "mdmember":
> -                raise KickstartValueError(formatErrorMsg(self.lineno, msg="RAID member %s has incorrect format (%s)" % (mem, dev.format.type)))
> +                raise KickstartValueError(formatErrorMsg(self.lineno, msg="RAID member %s has incorrect format (%s)" % (member, dev.format.type)))
>  
>              if not dev:
> -                raise KickstartValueError(formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in RAID specification" % mem))
> +                raise KickstartValueError(formatErrorMsg(self.lineno, msg="Tried to use undefined partition %s in RAID specification" % member))
>  
>              raidmems.append(dev)
>  
> -- 
> 1.8.3.1

Good catch. Odd that pylint doesn't notice this.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list