From f84470119831c157379af74a3d4f43f48d99dcd5 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Wed, 1 Apr 2015 23:17:20 -0400 Subject: [PATCH] fix bug 4555 lsslp -s PBMC does not honor -n flag, need to update nodetype attribute for predefined node after discoveried --- xCAT-server/lib/xcat/plugins/nodediscover.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index 4dd348e36..70afae632 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -194,6 +194,9 @@ sub process_request { unless ($nent and $nent->{supportedarchs} eq $request->{arch}->[0] and $nent->{arch} eq $request->{arch}->[0]) { $typetab->setNodeAttribs($node,{arch=>$request->{arch}->[0],supportedarchs=>$request->{arch}->[0]}); } + if ($request->{arch}->[0] =~ /ppc/ and $request->{platform}->[0] =~ /PowerNV/) { + $typetab->setNodeAttribs($node,{nodetype=>'mp'}); + } } my $currboot=''; $nrtab = xCAT::Table->new('noderes'); #Attempt to check and set if wrong the netboot method on discovery, if admin omitted