diff --git a/xCAT-server-2.0/share/xcat/cons/hmc b/xCAT-server-2.0/share/xcat/cons/hmc index a93a9c875..642487cc8 100644 --- a/xCAT-server-2.0/share/xcat/cons/hmc +++ b/xCAT-server-2.0/share/xcat/cons/hmc @@ -168,7 +168,10 @@ sub invoke_cmd { ################################# # Check for valid "type" ################################# - if ( $ent->{nodetype} !~ s/^(osi)$/lpar/ ) { + my @types = split /,/, $ent->{nodetype}; + my ($type) = grep( /^lpar|osi$/, @types ); + + if ( !defined( $type )) { return( "Invalid node type: $ent->{nodetype}" ); } ################################# @@ -207,7 +210,7 @@ sub invoke_cmd { my $mtms = "$vpd->{mtm}*$vpd->{serial}"; my $host = $att->{hcp}; my $lparid = $att->{id}; - my $type = $ent->{nodetype}; + my $type = "lpar"; ################################# # Connect to the remote server @@ -243,3 +246,4 @@ if ( $result ne "0" ) { exit(0); +