fix lldp.py #280

Merged
Zagrebelsky merged 1 commit from lldm_fix into master 2023-08-28 18:54:54 +02:00
Zagrebelsky commented 2023-08-25 01:55:46 +02:00 (Migrated from github.com)

It's fix for issue https://github.com/Solvik/netbox-agent/issues/274

Issue

There might be an issue when the path_component is already a string in the dictionary.
When this happens, current_dict becomes a string, and then current_dict[final] = value, it throws the TypeError.

Expected behavior

current_dict should always be dict, and not failed

Test environment:

OS: [e.g. Rocky 8 18.04]
Netbox agent version [v0.7.2]

It's fix for issue https://github.com/Solvik/netbox-agent/issues/274 ### Issue There might be an issue when the path_component is already a string in the dictionary. When this happens, current_dict becomes a string, and then current_dict[final] = value, it throws the TypeError. ### Expected behavior current_dict should always be dict, and not failed ### Test environment: OS: [e.g. Rocky 8 18.04] Netbox agent version [v0.7.2]
thubrecht referenced this pull request from a commit 2024-10-21 12:32:22 +02:00
Sign in to join this conversation.
No description provided.