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
This commit is contained in:
wanghuaz 2011-06-08 06:21:41 +00:00
parent e940c1935b
commit 56dfe4335e
2 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ sub sshcfg {
# Find logon in key file
#################################
foreach ( @$result ) {
if ( /= $logon$/ ) {
if ( /$logon$/ ) {
return( [[$server,"enabled",SUCCESS]] );
}
}

View File

@ -966,7 +966,7 @@ sub mkauthkeys {
# When adding, remove old keys first
#####################################
foreach ( @$result ) {
unless ( /= $logon$/ ) {
unless ( /$logon$/ ) {
push @authkey, $_;
}
}