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@12788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
59ac4c2b1b
commit
9621b0511f
@ -71,10 +71,10 @@ sub subvars {
|
||||
close($inh);
|
||||
my $master;
|
||||
#my $sitetab = xCAT::Table->new('site');
|
||||
#my $noderestab = xCAT::Table->new('noderes');
|
||||
my $noderestab = xCAT::Table->new('noderes');
|
||||
#(my $et) = $sitetab->getAttribs({key=>"master"},'value');
|
||||
my @masters = xCAT::Utils->get_site_attribute("master");
|
||||
my $tmp = $masters[0]
|
||||
my $tmp = $masters[0];
|
||||
if ( defined($tmp) ) {
|
||||
$master = $tmp;
|
||||
}
|
||||
@ -82,7 +82,7 @@ sub subvars {
|
||||
if ($ipfn) {
|
||||
$master = $ipfn;
|
||||
}
|
||||
$et = $noderestab->getNodeAttribs($node,['xcatmaster']);
|
||||
my $et = $noderestab->getNodeAttribs($node,['xcatmaster']);
|
||||
if ($et and $et->{'xcatmaster'}) {
|
||||
$master = $et->{'xcatmaster'};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user