From a943c20104798d5ab0f02242a126a6c15d34ee93 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Thu, 6 Apr 2017 15:39:20 -0400 Subject: [PATCH] rcons command failed for openbmc --- xCAT-server/lib/xcat/plugins/openbmc.pm | 2 ++ xCAT-server/share/xcat/cons/openbmc | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index e72e412e4..b4107e68c 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -316,6 +316,8 @@ sub parse_args { unless ($subcommand =~ /^cpu$|^dimm$|^bios$|^all$/) { return ([ 1, "Unsupported command: $command $subcommand" ]); } + } elsif ($command eq "getopenbmccons") { + #command for openbmc rcons } else { return ([ 1, "Command is not supported." ]); } diff --git a/xCAT-server/share/xcat/cons/openbmc b/xCAT-server/share/xcat/cons/openbmc index 172bb272e..6d166a7d9 100755 --- a/xCAT-server/share/xcat/cons/openbmc +++ b/xCAT-server/share/xcat/cons/openbmc @@ -58,7 +58,6 @@ sub getans { my $error = $rsp->{node}->[0]->{error}->[0]; print "$error\n"; } - print "$bmcip, $username, $password\n"; } } my $cmdref = {