Cleaned up error-handling (particularly for IVM)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4fccd41b7c
commit
4ad34b4565
@ -187,7 +187,7 @@ sub ivm_rnetboot {
|
||||
#######################################
|
||||
# Network specified
|
||||
#######################################
|
||||
$cmd.= " -s auto -d auto -S $opt->{S} -G $opt->{G} -C $opt->{C}";
|
||||
$cmd.= " -s auto -d auto -m $opt->{m} -S $opt->{S} -G $opt->{G} -C $opt->{C}";
|
||||
|
||||
#######################################
|
||||
# Add command options
|
||||
@ -217,7 +217,14 @@ sub ivm_rnetboot {
|
||||
#######################################
|
||||
# Get command exit code
|
||||
#######################################
|
||||
my $Rc = ( $? ) ? $? >> 8 : SUCCESS;
|
||||
my $Rc = SUCCESS;
|
||||
|
||||
foreach ( split /\n/, $result ) {
|
||||
if ( /^lpar_netboot: / ) {
|
||||
$Rc = RC_ERROR;
|
||||
last;
|
||||
}
|
||||
}
|
||||
return( [$Rc,$result] );
|
||||
}
|
||||
|
||||
@ -333,3 +340,4 @@ sub rnetboot {
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user