From 3be86db95df36d17100f0dd6f48e4cab9c8b2262 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 11 May 2010 16:11:30 +0000 Subject: [PATCH] fix default is ssh on AIX when the useSSHonAIX attribute does not exist git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/dsh/Context/XCAT.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/dsh/Context/XCAT.pm b/xCAT-server/lib/xcat/dsh/Context/XCAT.pm index 55eaa18d1..a49c7e004 100644 --- a/xCAT-server/lib/xcat/dsh/Context/XCAT.pm +++ b/xCAT-server/lib/xcat/dsh/Context/XCAT.pm @@ -322,10 +322,14 @@ sub get_xcat_remote_cmds # override with site table settings, if they exist my $ssh_setup = 0; my @useSSH = xCAT::Utils->get_site_attribute("useSSHonAIX"); - $useSSH[0] =~ tr/a-z/A-Z/; # convert to upper - if (($useSSH[0] eq "1") || ($useSSH[0] eq "YES")) - { - $ssh_setup = 1; + if (defined($useSSH[0])) { + $useSSH[0] =~ tr/a-z/A-Z/; # convert to upper + if (($useSSH[0] eq "1") || ($useSSH[0] eq "YES")) + { + $ssh_setup = 1; + } + } else { # default is SSH + $ssh_setup = 1; } if (xCAT::Utils->isLinux()) { $XCAT_RSH_CMD = "/usr/bin/ssh"; # use ssh