From 45477b2893a853cb552b7bc6ff7fdd304ac3bb1d Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 12 Nov 2009 15:50:13 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/DSHCLI.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index fe41ae12a..ccae06594 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -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";