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

OpenBMC reventlog flag verification

This commit is contained in:
Mark Gurevich 2018-03-28 14:36:58 -04:00
parent c055b8c716
commit 8c5701d9ab
2 changed files with 7 additions and 2 deletions

View File

@ -255,7 +255,7 @@ sub run_cmd_in_perl {
}
# List of commands currently not supported in Python
my @unsupported_in_python_commands = ('rflash', 'rspconfig', 'reventlog', 'getopenbmccons');
my @unsupported_in_python_commands = ('rflash', 'rspconfig', 'getopenbmccons');
if ($command ~~ @unsupported_in_python_commands) {
# Command currently not supported in Python

View File

@ -364,7 +364,12 @@ sub parse_args {
}
} elsif ($command eq "reventlog") {
$subcommand = "all" if (!defined($ARGV[0]));
if ($subcommand =~ /^resolved=(.*)/) {
if (scalar(@ARGV) >= 2) {
if ($ARGV[1] =~ /^-s$/) {
return ([ 1, "The -s option is not supported for OpenBMC." ]);
}
return ([ 1, "Only one option is supported at the same time for $command" ]);
} elsif ($subcommand =~ /^resolved=(.*)/) {
my $value = $1;
if (not $value) {
return ([ 1, "$usage_errormsg $reventlog_no_id_resolved_errormsg" ]);