From 6004cc18f1adbb2595d393c4a9c7974ca42a92f7 Mon Sep 17 00:00:00 2001 From: WangXiaoPeng Date: Wed, 8 Apr 2015 01:23:07 -0400 Subject: [PATCH] Change in Utils.pm->filter_nodes() to recoganize ppc64le if it's arch matchs to ppc64.* --- perl-xCAT/xCAT/Utils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index 838b0fe59..4a65d713e 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3430,6 +3430,7 @@ sub filter_nodes{ # if existing in both 'mpa' and 'ipmi', a ngp x86 blade # if only in 'ppc', a common power node # if only in 'ipmi', a common x86 node + # if in ipmi and arch =~ /ppc64/, a pp64le node foreach (@nodes) { if (defined ($mptabhash->{$_}->[0]) && defined ($mptabhash->{$_}->[0]->{'mpa'})) { if ($mptabhash->{$_}->[0]->{'mpa'} eq $_) { @@ -3469,7 +3470,7 @@ sub filter_nodes{ push @commonbmc, $_; # whether is a Power 8 or higher with FSP if (defined ($nodetypehash->{$_}->[0]) && defined ($nodetypehash->{$_}->[0]->{'arch'})) { - if ($nodetypehash->{$_}->[0]->{'arch'} ne "ppc64le") { + if ($nodetypehash->{$_}->[0]->{'arch'} !~ /^ppc64/i) { push @nonppcle, $_; } }