2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-10 14:51:30 +00:00

Merge pull request #6244 from Obihoernchen/patch-8

[OpenBMC] fix reventlog for python2
This commit is contained in:
xuweibj
2019-04-19 10:01:07 +08:00
committed by GitHub

View File

@ -661,7 +661,7 @@ class OpenBMCRest(object):
# Check if policy table file is there
ras_event_mapping = {}
if os.path.isfile(RAS_POLICY_TABLE):
with open(RAS_POLICY_TABLE, encoding="utf8", errors='ignore') as data_file:
with open(RAS_POLICY_TABLE) as data_file:
policy_hash = json.load(data_file)
if policy_hash:
ras_event_mapping = policy_hash['events']