fixed one issue that on P6. If no profile enable for one lpar, the curr_profile setting on hmc is set to none. But on p5, it is set to empty. This makes in xcat databse, the pprofile is set to none even no profile is available.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4152 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2009-09-17 05:06:30 +00:00
parent 4ef093a0f9
commit 3336f8c725

View File

@ -304,7 +304,7 @@ sub enumerate {
}
foreach ( @$lpars ) {
my ($name,$lparid,$dprof,$curprof) = split /,/;
my $prof = (length($curprof)) ? $curprof : $dprof;
my $prof = (length($curprof) && ($curprof !~ /^none$/)) ? $curprof : $dprof;
my $ips = "";
#####################################