[anaconda][master/rhel7-branch][PATCH 2/2] Add dialog box for adding DASDs. (#1070115)

Brian C. Lane bcl at redhat.com
Fri Aug 29 03:35:48 UTC 2014


On Thu, Aug 28, 2014 at 03:18:26PM -0400, Samantha N. Bueno wrote:
> +    def _discover(self, *args):

Why use *args here?


> +        """ Given the configuration options from a user, attempt to discover
> +            a DASD device. This includes searching black-listed devices.
> +        """
> +        # attempt to add the device
> +        try:
> +            online_dasd(args[0])
> +            self._update_devicetree = True
> +        except ValueError as e:
> +            self._discoveryError = str(e)
> +            return
> -- 
> 1.9.3

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


More information about the anaconda-patches mailing list