cleaned up GetNodeOSARCH from defect 3095
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f7fa23352c
commit
ef434876c1
@ -1066,19 +1066,12 @@ sub GetMasterNodeName
|
||||
my ($class, $node) = @_;
|
||||
my $master;
|
||||
my $noderestab = xCAT::Table->new('noderes');
|
||||
#my $typetab = xCAT::Table->new('nodetype');
|
||||
unless ($noderestab)
|
||||
{
|
||||
xCAT::MsgUtils->message('S',
|
||||
"Unable to open noderes or nodetype table.\n");
|
||||
"Unable to open noderes table.\n");
|
||||
return 1;
|
||||
}
|
||||
#my $sitetab = xCAT::Table->new('site');
|
||||
#(my $et) = $sitetab->getAttribs({key => "master"}, 'value');
|
||||
#if ($et and $et->{value})
|
||||
#{
|
||||
# $master = $et->{value};
|
||||
#}
|
||||
my @masters = xCAT::TableUtils->get_site_attribute("master");
|
||||
$master = $masters[0];
|
||||
|
||||
@ -1090,15 +1083,11 @@ sub GetMasterNodeName
|
||||
unless ($master)
|
||||
{
|
||||
xCAT::MsgUtils->message('S', "Unable to identify master for $node.\n");
|
||||
#$sitetab->close;
|
||||
$noderestab->close;
|
||||
#$typetab->close;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#$sitetab->close;
|
||||
$noderestab->close;
|
||||
#$typetab->close;
|
||||
return $master;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user