Skip to content
Snippets Groups Projects
Commit c7a9c733 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp-v2: ramdump: Handle equals signs in config values"

parents e131f749 63f85b54
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. # Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and # it under the terms of the GNU General Public License version 2 and
...@@ -604,7 +604,9 @@ class RamDump(): ...@@ -604,7 +604,9 @@ class RamDump():
for l in t: for l in t:
self.config.append(l.rstrip().decode('ascii', 'ignore')) self.config.append(l.rstrip().decode('ascii', 'ignore'))
if not l.startswith('#') and l.strip() != '': if not l.startswith('#') and l.strip() != '':
cfg, val = l.split('=') eql = l.find('=')
cfg = l[:eql]
val = l[eql+1:]
self.config_dict[cfg] = val.strip() self.config_dict[cfg] = val.strip()
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment