mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #362 from zet809/issue_352_master
[2.11] fix issue 352: 2.9.2rspconfig HMC sshcfg=disable could not configure …
This commit is contained in:
commit
2030b2d7dd
@ -445,6 +445,7 @@ sub sshcfg {
|
||||
# Determine if SSH is enabled
|
||||
#####################################
|
||||
if ( !defined( $mode )) {
|
||||
my ($keytype, $key_string) = split /\ /, $sshkey;
|
||||
xCAT::MsgUtils->verbose_message($request, "rspconfig :check sshcfg for user:$logon on node:$server.");
|
||||
my $result = xCAT::PPCcli::send_cmd( $exp, "cat $auth" );
|
||||
my $Rc = shift(@$result);
|
||||
@ -459,7 +460,8 @@ sub sshcfg {
|
||||
# Find logon in key file
|
||||
#################################
|
||||
foreach ( @$result ) {
|
||||
if ( /$logon$/ ) {
|
||||
my ($tmp1, $tmp2) = split /\ /, $_;
|
||||
if ( "$tmp2" eq "$key_string" ) {
|
||||
return( [[$server,"enabled",SUCCESS]] );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user