[PATCH] The NFS text dialog should never attempt to use method.url (#998446).

Brian C. Lane bcl at redhat.com
Wed Aug 21 14:41:45 UTC 2013


On Wed, Aug 21, 2013 at 10:15:43AM -0400, Chris Lumens wrote:
> ---
>  pyanaconda/ui/tui/spokes/source.py | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/pyanaconda/ui/tui/spokes/source.py b/pyanaconda/ui/tui/spokes/source.py
> index 8086d53..020e392 100644
> --- a/pyanaconda/ui/tui/spokes/source.py
> +++ b/pyanaconda/ui/tui/spokes/source.py
> @@ -256,7 +256,7 @@ class SpecifyNFSRepoSpoke(EditTUISpoke):
>      category = "source"
>  
>      edit_fields = [
> -        Entry(_("NFS <server>:/<path>"), "url", re.compile(".*$"), True),
> +        Entry(_("NFS <server>:/<path>"), "server", re.compile(".*$"), True),
>          Entry(_("NFS mount options"), "opts", re.compile(".*$"), True)
>      ]
>  
> @@ -276,14 +276,14 @@ class SpecifyNFSRepoSpoke(EditTUISpoke):
>  
>      def apply(self):
>          """ Apply our changes. """
> -        if self.args.url == "" or not ':' in self.args.url:
> +        if self.args.server == "" or not ':' in self.args.server:
>              return False
>  
> -        if self.args.url.startswith("nfs://"):
> -            self.args.url = self.args.url.strip("nfs://")
> +        if self.args.server.startswith("nfs://"):
> +            self.args.server = self.args.server.strip("nfs://")
>  
>          try:
> -            (self.data.method.server, self.data.method.dir) = self.args.url.split(":", 2)
> +            (self.data.method.server, self.data.method.dir) = self.args.server.split(":", 2)
>          except ValueError as err:
>              LOG.error("ValueError: %s" % (err,))
>              self.errors.append(_("Failed to set up installation source. Check the source address."))
> -- 
> 1.8.1.2
> 
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130821/148ad74d/attachment-0001.sig>


More information about the anaconda-patches mailing list