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

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-05-22 09:09:30 +00:00
parent 15618c0aad
commit 64217a35c4

View File

@ -163,15 +163,17 @@ sub process_request {
my $hoststab = xCAT::Table->new('hosts');
my $sitetab = xCAT::Table->new('site');
#my $sitetab = xCAT::Table->new('site');
my $domain;
my $lockh;
if ($sitetab) {
my $dent = $sitetab->getAttribs({key=>'domain'},'value');
if ($dent and $dent->{value}) {
$domain=$dent->{value};
#if ($sitetab) {
#my $dent = $sitetab->getAttribs({key=>'domain'},'value');
my @entries = xCAT::Utils->get_site_attribute("domain");
my $t_entry = $entries[0];
if ( defined($t_entry) ) {
$domain=$t_entry;
}
}
#}
@hosts = ();
if ($REMOVE) {