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@12870 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
64217a35c4
commit
e19dd4583a
@ -638,14 +638,16 @@ sub process_request {
|
||||
my $bladeuser = 'USERID';
|
||||
my $bladepass = 'PASSW0RD';
|
||||
my $blademaxp = 64;
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
#my $sitetab = xCAT::Table->new('site');
|
||||
my $mpatab = xCAT::Table->new('mpa');
|
||||
my $mptab = xCAT::Table->new('mp');
|
||||
my $tmp;
|
||||
if ($sitetab) {
|
||||
($tmp)=$sitetab->getAttribs({'key'=>'blademaxp'},'value');
|
||||
if (defined($tmp)) { $blademaxp=$tmp->{value}; }
|
||||
}
|
||||
#if ($sitetab) {
|
||||
#($tmp)=$sitetab->getAttribs({'key'=>'blademaxp'},'value');
|
||||
my @entries = xCAT::Utils->get_site_attribute("blademaxp");
|
||||
my $t_entry = $entries[0];
|
||||
if (defined($t_entry)) { $blademaxp=$t_entry; }
|
||||
#}
|
||||
my $passtab = xCAT::Table->new('passwd');
|
||||
if ($passtab) {
|
||||
($tmp)=$passtab->getAttribs({'key'=>'blade'},'username','password');
|
||||
|
Loading…
Reference in New Issue
Block a user