Skip to content

Commit

Permalink
fix for rh8: when parsing printenv output, do not accept lines that s…
Browse files Browse the repository at this point in the history
…tart with space.
  • Loading branch information
javierggt committed May 27, 2022
1 parent 3d2c2b0 commit ca23140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ska/Shell/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _parse_keyvals(keyvals):
re_keyval = re.compile(r'([\w_]+) \s* = \s* (.*)', re.VERBOSE)
keyvalout = {}
for keyval in keyvals:
m = re.search(re_keyval, keyval.strip())
m = re.match(re_keyval, keyval.rstrip())
if m:
key, val = m.groups()
keyvalout[key] = val
Expand Down

0 comments on commit ca23140

Please sign in to comment.