From e0ee3d3a0b5a573ac44d6a00755878fea412deac Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 14 Sep 2009 11:38:16 +0000 Subject: [PATCH] -Fix bug in previous checkin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodediscover.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index 91e9ca2bd..7ccfe7548 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -102,8 +102,8 @@ sub process_request { if (defined($request->{arch})) { #Set the architecture in nodetype. If 32-bit only x86 or ppc detected, overwrite. If x86_64, only set if either not set or not an x86 family my $typetab=xCAT::Table->new("nodetype",-create=>1); + (my $nent) = $typetab->getNodeAttribs($node,['arch','supportedarchs']); if ($request->{arch}->[0] =~ /x86_64/) { - (my $nent) = $typetab->getNodeAttribs($node,['arch','supportedarchs']); if ($nent and ($nent->{arch} =~ /x86/)) { #If already an x86 variant, do not change unless ($nent and $nent->{supportedarchs} =~ /x86_64/) { $typetab->setNodeAttribs($node,{supportedarchs=>"x86,x86_64"});