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:
		| @@ -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', | ||||
|   | ||||
| @@ -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" )); | ||||
|             } | ||||
|         }  | ||||
|     } | ||||
|     ################################# | ||||
|   | ||||
		Reference in New Issue
	
	Block a user