Changed nodetype attribute to "lpar,osi" - Line #172
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3ba65abb51
commit
3d153759a4
@ -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);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user