[PATCH] Fix a format parameter mapping (#1007472)

Chris Lumens clumens at redhat.com
Thu Sep 12 15:01:14 UTC 2013


> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index 393e52a..03e0cdc 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -1242,7 +1242,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
>              min_disks = mdraid.get_raid_min_members(md_level)
>              if len(self._device_disks) < min_disks:
>                  error = (_(raid_level_not_enough_disks_msg)
> -                         % (raid_level, min_disks, len(self._device_disks)))
> +                         % {"level": raid_level,
> +                            "min" : min_disks,
> +                            "count": len(self._device_disks)})
>  
>          if error:
>              self.set_warning(error)

ACK.

Incidentally, I think the extra layer of parens to avoid having a
backslash is silly.

- Chris


More information about the anaconda-patches mailing list