From 56dfe4335e940b40e49f0c19ff1a51030d615dfa Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 8 Jun 2011 06:21:41 +0000 Subject: [PATCH] On latest AIX, the key format in the ssh key file has been changed. There is no '= ' before the key. So remove it when mapping the keys. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9762 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCcfg.pm | 2 +- perl-xCAT/xCAT/PPCcli.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCcfg.pm b/perl-xCAT/xCAT/PPCcfg.pm index f9ee53042..cbb8f89b1 100644 --- a/perl-xCAT/xCAT/PPCcfg.pm +++ b/perl-xCAT/xCAT/PPCcfg.pm @@ -408,7 +408,7 @@ sub sshcfg { # Find logon in key file ################################# foreach ( @$result ) { - if ( /= $logon$/ ) { + if ( /$logon$/ ) { return( [[$server,"enabled",SUCCESS]] ); } } diff --git a/perl-xCAT/xCAT/PPCcli.pm b/perl-xCAT/xCAT/PPCcli.pm index 7a21f8eaa..18bf7ddd3 100644 --- a/perl-xCAT/xCAT/PPCcli.pm +++ b/perl-xCAT/xCAT/PPCcli.pm @@ -966,7 +966,7 @@ sub mkauthkeys { # When adding, remove old keys first ##################################### foreach ( @$result ) { - unless ( /= $logon$/ ) { + unless ( /$logon$/ ) { push @authkey, $_; } }