Re: [PATCH] Prevent traceback for vnc installs on KVM guests (#470559)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 07, 2008 at 11:00:53PM -0500, Ignacio Vazquez-Abrams wrote:
> On Fri, 2008-11-07 at 16:12 -1000, David Cantrell wrote: 
> > -    hn = anaconda.id.network.hostname
> > +    try:
> > +        hn = anaconda.id.network.hostname
> > +    except:
> > +        hn = None
> 
> Unfortunately this doesn't explain why you wouldn't get a valid
> hostname. Please consider using "if anaconda.id:" instead.

Why?  I don't understand how 'if anaconda.id:' helps me here.  If
anaconda.id.network.hostname fails for any reason, I want hn to be None.  I
don't see what checking anaconda.id gains me.

-- 
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

Attachment: pgpPrY3TrRgBW.pgp
Description: PGP signature

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux