2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-12 17:30:19 +00:00

rm openbmcevents

This commit is contained in:
XuWei
2017-12-11 00:17:26 -05:00
parent 803d4134b6
commit 58eba48a97
2 changed files with 1 additions and 3497 deletions

File diff suppressed because it is too large Load Diff

View File

@ -36,8 +36,6 @@ use xCAT_monitoring::monitorctrl;
use POSIX qw(WNOHANG);
use xCAT::Utils qw/natural_sort_cmp/;
use xCAT::data::openbmcevents;
$::VERBOSE = 0;
# String constants for rbeacon states
$::BEACON_STATE_OFF = "off";
@ -1081,7 +1079,6 @@ sub parse_command_status {
$next_status{REVENTLOG_REQUEST} = "REVENTLOG_RESPONSE";
$status_info{REVENTLOG_RESPONSE}{argv} = "$subcommand";
my $policy_table = "/opt/ibm/ras/lib/policyTable.json";
my $policy_mapping = "$::XCATROOT/lib/perl/xCAT/data/openbmcevents.pm";
if (-e "$policy_table") {
my $policy_json = `cat $policy_table`;
if ($policy_json) {
@ -1090,10 +1087,8 @@ sub parse_command_status {
} else {
$event_mapping = "No data in $policy_table";
}
} elsif (-e "$policy_mapping") {
$event_mapping = $xCAT::data::openbmcevents::openbmc_event_mapping{events};
} else {
$event_mapping = "Could not found '$policy_mapping'";
$event_mapping = "Could not found '$policy_table'";
}
}
}