diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-04-20 00:39:35 -0500 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-04-20 00:39:35 -0500 |
commit | 678d58b8d9af310560d0a40ef1ba45e323689cfe (patch) | |
tree | 0a2778980ed36e9d5fc17f3e0357371ebaad3cf6 | |
parent | 5493210786a3fbf0ec39250e365909ff08beb816 (diff) | |
download | phosphor-logging-678d58b8d9af310560d0a40ef1ba45e323689cfe.tar.gz phosphor-logging-678d58b8d9af310560d0a40ef1ba45e323689cfe.zip |
elog-gen.py : strip whitespaces
Strip trailing and leading whitespaces from the error description.
Resolves openbmc/openbmc#1481.
Change-Id: Ia223ab34746e64d87dacd1f23ade7e4fc63ca9df
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
-rwxr-xr-x | tools/elog-gen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/elog-gen.py b/tools/elog-gen.py index 29ff52f..4ab3690 100755 --- a/tools/elog-gen.py +++ b/tools/elog-gen.py @@ -212,7 +212,7 @@ def get_elog_data(i_elog_yaml, # Get 0th inherited error (current support - single inheritance) parent = i['inherits'][0] parents[fullname] = parent - error_msg[fullname] = match['description'] + error_msg[fullname] = match['description'].strip() try: error_lvl[fullname] = i['level'] except: |