-Specify scope of 'out' variable

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-11 01:53:44 +00:00
parent 5e6f8a729b
commit 7be4bcfbd8

View File

@ -1736,7 +1736,7 @@ sub getAttribs
$exp =~ /^{hostname}$/ && do { $out = qx/hostname/; chomp $out; $expfound = 1; };
$exp =~ /^{xcatmaster}$/ && do {
my $ostab = xCAT::Table->new('site');
$out = $ostab->getAttribs({key=>"master"},'value');
my $out = $ostab->getAttribs({key=>"master"},'value');
if ($out and $out->{value}) {
$out = $out->{'value'}; $expfound = 1;
}