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
This commit is contained in:
jjhua 2010-04-12 06:07:37 +00:00
parent 6030635345
commit 50b323ae67
2 changed files with 5 additions and 2 deletions

View File

@ -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',

View File

@ -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" ));
}
}
}
#################################