Merge pull request #380 from renard/lldp-keep-whole-lines
[lldp] Merge wrapped lines.
This commit is contained in:
commit
fc87e8ae15
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ def gather_lldp():
|
|||
path, value = entry.strip().split("=", 1)
|
||||
path = path.split(".")
|
||||
path_components, final = path[:-1], path[-1]
|
||||
else:
|
||||
value = current_dict[final] + '\n' + entry
|
||||
|
||||
current_dict = output_dict
|
||||
for path_component in path_components:
|
||||
|
|
Loading…
Reference in a new issue