Merge pull request #380 from renard/lldp-keep-whole-lines

[lldp] Merge wrapped lines.
reviewable/pr18780/r1
Brian Coca 10 years ago
commit fc87e8ae15

@ -58,6 +58,8 @@ def gather_lldp():
path, value = entry.strip().split("=", 1) path, value = entry.strip().split("=", 1)
path = path.split(".") path = path.split(".")
path_components, final = path[:-1], path[-1] path_components, final = path[:-1], path[-1]
else:
value = current_dict[final] + '\n' + entry
current_dict = output_dict current_dict = output_dict
for path_component in path_components: for path_component in path_components:

Loading…
Cancel
Save