From 50b323ae678f94fe8afee7e9782dd5642df6ee1e Mon Sep 17 00:00:00 2001 From: jjhua Date: Mon, 12 Apr 2010 06:07:37 +0000 Subject: [PATCH] onlyif mgt=fsp for pprofile; allow set the pprofile value of lpar in FSPAPI git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5739 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 5 +++++ xCAT-server/lib/perl/xCAT/PPC.pm | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 8f937c23e..401752cbb 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1284,6 +1284,11 @@ my @nodeattrs = ( tabentry => 'ppc.pprofile', access_tabentry => 'ppc.node=attr:node', }, + {attr_name => 'pprofile', + only_if => 'mgt=fsp', + tabentry => 'ppc.pprofile', + access_tabentry => 'ppc.node=attr:node', + }, {attr_name => 'parent', only_if => 'mgt=hmc', tabentry => 'ppc.parent', diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 524c05d10..0d77a6166 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -1010,9 +1010,7 @@ sub resolve { ################################# foreach my $at ( @attribs ) { if ( !exists( $att->{$at} )) { - if ( $request->{fsp_api} == 1 && $at !~ /^pprofile$/ ) { return( sprintf( $errmsg{NO_ATTR}, $at, "ppc" )); - } } } #################################