2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-24 20:20:33 +00:00

fix issue 352: 2.9.2rspconfig HMC sshcfg does not show disable state even the state is disabled

This commit is contained in:
ertaozh
2015-11-15 22:10:32 -05:00
parent 61229fc417
commit 4c363d047a

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]] );
}