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@12891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
41c6e9bf7a
commit
16be33214a
@ -34,13 +34,15 @@ sub process_request {
|
||||
my $callback = shift;
|
||||
my $doreq = shift;
|
||||
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
my $ent = $sitetab->getAttribs({key=>'installdir'},['value']);
|
||||
#my $sitetab = xCAT::Table->new('site');
|
||||
#my $ent = $sitetab->getAttribs({key=>'installdir'},['value']);
|
||||
my @entries = xCAT::Utils->get_site_attribute("installdir");
|
||||
my $t_entry = $entries[0];
|
||||
my $installroot = "/install";
|
||||
|
||||
# get /install directory
|
||||
if ($ent and $ent->{value}) {
|
||||
$installroot = $ent->{value};
|
||||
if ( defined($t_entry) ) {
|
||||
$installroot = $t_entry;
|
||||
}
|
||||
# if not defined, error out... or should we set it as default?
|
||||
unless ($installroot) {
|
||||
|
Loading…
Reference in New Issue
Block a user