Fix for "rmnimimage -x" with error of "no nim object".

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2010-09-10 02:55:40 +00:00
parent 9fe1269fb9
commit 0153e21d72

View File

@ -3383,6 +3383,14 @@ sub get_ServiceNode
chomp $nimprime;
}
# $master and $nimprime is possible to be the same (MN)
# but $master is IP addr, $nimprime is short hostname
# this results in %snhash may have two keys duplicated.
# so use ip for nimprime.
my $nimprimeip = xCAT::NetworkUtils->getipaddr($nimprime);
$nimprime = $nimprimeip;
$noderestab = xCAT::Table->new('noderes');
$nodetab = xCAT::Table->new('nodetype');