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@12897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-05-23 06:29:34 +00:00
parent f9c5ee43cc
commit 427dab0ad2

View File

@ -472,15 +472,17 @@ sub copycd
my $distname = "";
my $installroot;
$installroot = "/install";
my $sitetab = xCAT::Table->new('site');
if ($sitetab)
{
(my $ref) = $sitetab->getAttribs({key => installdir}, value);
if ($ref and $ref->{value})
#my $sitetab = xCAT::Table->new('site');
#if ($sitetab)
#{
#(my $ref) = $sitetab->getAttribs({key => installdir}, value);
my @entries = xCAT::Utils->get_site_attribute("installdir");
my $t_entry = $entries[0];
if ( defined($t_entry) )
{
$installroot = $ref->{value};
$installroot = $t_entry;
}
}
#}
@ARGV = @{$request->{arg}};
GetOptions(