summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2016-11-21 12:49:01 -0600
committerAndrew Geissler <andrewg@us.ibm.com>2016-11-22 08:28:52 -0600
commit5e81bfb45a4972141f17b46df52192004f5e934c (patch)
tree632842630e244d515062cf6571d628e6084b25ab /tools
parentefb31c454b311771fba97833be9747bf751759ab (diff)
downloadphosphor-logging-5e81bfb45a4972141f17b46df52192004f5e934c.tar.gz
phosphor-logging-5e81bfb45a4972141f17b46df52192004f5e934c.zip
Address new yaml format changes introduced by sdbusplus commit 7d7fda5
Patrick's commit for exceptions had a few tweaks to the yaml file format. This commit updates elog_gen.py to support them. Change-Id: I59261ab0fddefde67304cbb394c74b9c9c5e496f Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/elog-gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/elog-gen.py b/tools/elog-gen.py
index c94e1b4..7f2448d 100755
--- a/tools/elog-gen.py
+++ b/tools/elog-gen.py
@@ -39,10 +39,10 @@ def gen_elog_hpp(i_elog_yaml, i_input_mako, i_output_hpp):
# see elog.yaml for reference
ifile = yaml.safe_load(open(i_elog_yaml))
err_count = 0
- for i in ifile['error-codes']:
+ for i in ifile:
# Grab the main error and it's info
errors[err_count] = i['name']
- error_msg[i['name']] = i['msg']
+ error_msg[i['name']] = i['description']
error_lvl[i['name']] = i['level']
tmp_meta = []
# grab all the meta data fields and info
OpenPOWER on IntegriCloud