Skip to content

Commit

Permalink
Fix SyntaxError for test_lldp_syncd (#14883)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhaohui Sun <[email protected]>
  • Loading branch information
ZhaohuiS authored Oct 9, 2024
1 parent 525c3df commit 6c6f6fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/common/helpers/sonic_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def hget_all(self, key):
v = result['stdout'].decode('unicode-escape')
else:
v = result['stdout']
v_dict = ast.literal_eval(v)
v_sanitized = v.replace('\n', '\\n')
v_dict = ast.literal_eval(v_sanitized)
return v_dict

def get_and_check_key_value(self, key, value, field=None):
Expand Down

0 comments on commit 6c6f6fd

Please sign in to comment.