fix defect 2883774 return code not received from IB switch, remove -n flag on ssh when command sent to IB switch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
05e1e949d3
commit
45477b2893
@ -967,8 +967,15 @@ sub fork_fanout_dsh
|
||||
|| $$target_properties{'remote-shell'}
|
||||
|| $$options{'node-rsh-defaults'}{$context};
|
||||
($remote_shell =~ /\/ssh$/) && ($rsh_extension = 'SSH');
|
||||
$rsh_config{'options'} = "-n "
|
||||
|
||||
# if IB switch device, do not set -n, causes no returncode
|
||||
if (($$options{'devicetype'})) {
|
||||
$rsh_config{'options'} =
|
||||
$$options{'node-options'}{$$target_properties{'context'}};
|
||||
} else { # not a device
|
||||
$rsh_config{'options'} = "-n "
|
||||
. $$options{'node-options'}{$$target_properties{'context'}};
|
||||
}
|
||||
}
|
||||
|
||||
#eval "require RemoteShell::$rsh_extension";
|
||||
|
Loading…
Reference in New Issue
Block a user