Stripped additional profile attributes for modify() function - Line 673
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@222 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
abaf8877a3
commit
711e6f03ab
@ -666,6 +666,16 @@ sub modify {
|
||||
# Change configuration
|
||||
###############################
|
||||
my $cfg = strip_profile( $cfgdata, $hwtype );
|
||||
|
||||
###############################
|
||||
# Additional changes
|
||||
###############################
|
||||
$cfg =~ s/,*lpar_env=[^,]+|$//;
|
||||
|
||||
if ( $hwtype eq "hmc" ) {
|
||||
$cfg =~ s/,*all_resources=[^,]+|$//;
|
||||
$cfg =~ s/,*lpar_id=[^,]+|$//;
|
||||
}
|
||||
my $result = xCAT::PPCcli::chsyscfg( $exp, $d, $cfg );
|
||||
my $Rc = shift(@$result);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user