[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [OSSTEST Nested PATCH v8 3/7] Edit some APIs in TestSupport.pm for nested test
> -----Original Message----- > From: Ian Jackson [mailto:Ian.Jackson@xxxxxxxxxxxxx] > Sent: Wednesday, April 22, 2015 8:50 PM > To: Ian Campbell > Cc: Pang, LongtaoX; xen-devel@xxxxxxxxxxxxx; wei.liu2@xxxxxxxxxx; Hu, Robert > Subject: Re: [OSSTEST Nested PATCH v8 3/7] Edit some APIs in TestSupport.pm > for nested test > > Ian Campbell writes ("Re: [OSSTEST Nested PATCH v8 3/7] Edit some APIs in > TestSupport.pm for nested test"): > > It will, I think, need to be integrated with the existing assignment to > > $ho->{Ip} in select host, so something like: > > > > if ( $r{"${ident}_ip"} ) { > > $ho->{Ip}= $r{"${ident}_ip"}; > > } else { > > $ho->{Ip}= $ho->{IpStatic}; > > } > > Yes. Yes, otherwise the code would go 'die' somewhere later. > > > or perhaps: > > > > $ho->{Ip} = $r{"${ident}_ip"} ? $r{"${ident}_ip"} : $ho->{IpStatic}; > > The shortest way to spell this is to use //, eg: > > $ho->{Ip} = $r{"${ident}_ip"} // $ho->{IpStatic}; Ah, yes! > > Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |