2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #412 from zet809/issue_352_master

fix issue 352: 2.9.2rspconfig HMC sshcfg does not show disable state …
This commit is contained in:
Xiaopeng Wang 2015-11-16 17:26:26 +08:00
commit b1d936db49

View File

@ -446,6 +446,7 @@ sub sshcfg {
#####################################
if ( !defined( $mode )) {
my ($keytype, $key_string) = split /\ /, $sshkey;
chomp($key_string);
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);
@ -461,6 +462,7 @@ sub sshcfg {
#################################
foreach ( @$result ) {
my ($tmp1, $tmp2) = split /\ /, $_;
chomp($tmp2);
if ( "$tmp2" eq "$key_string" ) {
return( [[$server,"enabled",SUCCESS]] );
}