|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH OSSTEST RFC] Osstest/Debian.pm: Use Fqdn hostprop when collecting host keys
On Fri, 2015-05-01 at 15:05 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH OSSTEST RFC] Osstest/Debian.pm: Use Fqdn
> hostprop when collecting host keys"):
> > That code is:
> >
> > my $defaultfqdn = $name;
> > $defaultfqdn .= ".$c{TestHostDomain}" unless $defaultfqdn =~ m/\./;
> > $ho->{Fqdn} = get_host_property($ho,'fqdn',$defaultfqdn);
> >
> > Perhaps for now I should write:
> >
> > my $defaultfqdn = $node;
> > $defaultfqdn .= ".$c{TestHostDomain}" unless $defaultfqdn =~ m/\./;
> >
> > my %props;
> > $mhostdb->get_properties($node, \%props);
> >
> > my $longname= $props{Fqdn} ? $props{Fqdn} : $defaultfqdn;
> >
> > ?
>
> Sure. Except you probably mean
>
> my $longname= $props{Fqdn} // $defaultfqdn;
Indeed I do, thanks.
I'll push the resulting patch to the Cambridge instance production
branch.
>
> > Mainly becuase here in preseed_create we lack a $ho object I think.
>
> Indeed.
>
> Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |