[PATCH 4/8] Fix issues with advanced storage searching.

Brian C. Lane bcl at redhat.com
Thu Jun 4 23:49:27 UTC 2015


On Thu, Jun 04, 2015 at 03:57:40PM -0400, David Shea wrote:
>      def _port_equal(self, device):
>          active = self._portCombo.get_active_text()
> -        if active and hasattr(device, "node"):
> -            return device.node.port == active
> +        if active:
> +            if hasattr(device, "node"):
> +                return device.node.port == int(active)

I think this needs a ValueError exception block since it is user entered
text.


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


More information about the anaconda-patches mailing list