From ef434876c1f2281418b299f39ef1360588c4e2c0 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 26 Sep 2012 14:10:06 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/TableUtils.pm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/perl-xCAT/xCAT/TableUtils.pm b/perl-xCAT/xCAT/TableUtils.pm index 72f9eeac2..39b4e3441 100644 --- a/perl-xCAT/xCAT/TableUtils.pm +++ b/perl-xCAT/xCAT/TableUtils.pm @@ -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; }