From d913682fe2b84f41bd9818d7b4803bd73b13da26 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 10 Sep 2012 18:59:47 +0000 Subject: [PATCH] base check for MN on __mgmtnode group name git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index ecf2fd8b0..ca041f245 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -2938,11 +2938,11 @@ sub noderangecontainsMn # check if any node in the noderange is the Management Node return the # name my $mname; - my $tab = xCAT::Table->new('nodetype'); - my @nodelist=$tab->getAllNodeAttribs(['node','nodetype']); + my $tab = xCAT::Table->new('nodelist'); + my @nodelist=$tab->getAllNodeAttribs(['node','groups']); foreach my $n (@nodelist) { - if (defined($n->{'nodetype'})) { - if ($n->{'nodetype'} eq "mn") { # this is the MN + if (defined($n->{'groups'})) { + if ($n->{'groups'} eq "__mgmtnode") { # this is the MN $mname=$n->{'node'}; last; }