Stream back STDERR and STDOUT on error as well in PPCcli::connect - Line #67
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
406c4e09ff
commit
bcb90c57dc
@ -136,7 +136,7 @@ sub connect {
|
||||
}
|
||||
|
||||
unless ( $ssh->spawn( "ssh", $parameters )) {
|
||||
return( "Unable to spawn ssh connection to server" );
|
||||
return( $expect_log."Unable to spawn ssh connection to server" );
|
||||
}
|
||||
##################################################
|
||||
# -re $continue
|
||||
@ -174,7 +174,7 @@ sub connect {
|
||||
##########################################
|
||||
if ( defined( $result[1] )) {
|
||||
$ssh->hard_close();
|
||||
return( expect_error(@result) );
|
||||
return( $expect_log.expect_error(@result) );
|
||||
}
|
||||
##########################################
|
||||
# Successful logon....
|
||||
@ -199,7 +199,7 @@ sub connect {
|
||||
# Failed logon - kill ssh process
|
||||
##########################################
|
||||
$ssh->hard_close();
|
||||
return( "Invalid userid/password" );
|
||||
return( $expect_log."Invalid userid/password" );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user