For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-05-18 03:15:00 +00:00
parent 964a5098d0
commit 2d550820b2

View File

@ -72,11 +72,13 @@ sub getnimprime
# or it is the xCAT management node.
my $nimprime = xCAT::Utils->get_site_Master();
my $sitetab = xCAT::Table->new('site');
(my $et) = $sitetab->getAttribs({key => "nimprime"}, 'value');
if ($et and $et->{value})
#my $sitetab = xCAT::Table->new('site');
#(my $et) = $sitetab->getAttribs({key => "nimprime"}, 'value');
my @nimprimes = xCAT::Utils->get_site_attribute("nimprime");
my $tmp = $nimprimes[0];
if (defined($tmp))
{
$nimprime = $et->{value};
$nimprime = $tmp;
}
my $hostname;