Changed nodetype attribute to accept "lpar,osi" - Line #340

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-02-13 19:26:13 +00:00
parent cc9dc28db9
commit 217641cf2b

View File

@ -336,11 +336,12 @@ sub resolve {
#################################
# Check for valid "type"
#################################
if ( $ent->{nodetype} !~ /^fsp|bpa|osi$/ ) {
my @types = split /,/, $ent->{nodetype};
my ($type) = grep( /^fsp|bpa|osi|lpar$/, @types );
if ( !defined( $type )) {
return( "Invalid node type: $ent->{nodetype}" );
}
my $type = $ent->{nodetype};
#################################
# Get attributes
#################################
@ -352,7 +353,7 @@ sub resolve {
#################################
# Special lpar processing
#################################
if ( $type =~ /^osi$/ ) {
if ( $type =~ /^lpar|osi$/ ) {
$att->{bpa} = 0;
$att->{type} = "lpar";
$att->{node} = $att->{parent};
@ -712,3 +713,4 @@ sub process_request {