diff --git a/perl-xCAT/xCAT/PPCmac.pm b/perl-xCAT/xCAT/PPCmac.pm index 5d9159728..9bdbb42a2 100644 --- a/perl-xCAT/xCAT/PPCmac.pm +++ b/perl-xCAT/xCAT/PPCmac.pm @@ -525,7 +525,7 @@ sub getmacs { if ( scalar(@$value) < 2 ) { - my $filter = "lpar_id,curr_profile"; + my $filter = "lpar_id,curr_profile,default_profile"; my $prof = xCAT::PPCcli::lssyscfg( $exp, "node", $mtms, $filter, $id ); my $Rc = shift(@$prof); @@ -538,7 +538,7 @@ sub getmacs { foreach my $val ( @$prof ) { my ($lpar_id,$curr_profile,$default_profile) = split /,/, $val; - if ( ((!length($default_profile)) and (!length($curr_profile))) || (($curr_profile =~ /^none$/) and ($curr_profile =~ /^none$/)) ) { + if ( ((!length($default_profile)) and (!length($curr_profile))) || (($default_profile =~ /^none$/) and ($curr_profile =~ /^none$/)) ) { push @emptynode,$node; } }