Skip to content

Commit

Permalink
Fix RegGroupField decode (sonic-net#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywongarista committed Nov 27, 2021
1 parent 6ae1909 commit 9cea07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_platform_base/sonic_xcvr/fields/xcvr_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def decode(self, raw_data, **decoded_deps):
offset = field.get_offset()
deps = field.get_deps()
if deps:
decoded_deps = {dep: result[dep] for dep in deps}
decoded_deps.update({dep: result[dep] for dep in deps if dep in result})
result[field.name] = field.decode(raw_data[offset - start: offset + field.get_size() - start],
**decoded_deps)
return result
Expand Down

0 comments on commit 9cea07f

Please sign in to comment.