Fixed several config errors, double exception imports, Linter stuff and edited test for new device_inventory_map key

This commit is contained in:
TheNetworkGuy
2025-06-08 22:13:36 +02:00
parent 9e1a90833d
commit a325863aec
3 changed files with 19 additions and 26 deletions

View File

@@ -43,7 +43,7 @@ class TestPhysicalDevice(unittest.TestCase):
"traverse_site_groups": False,
"inventory_mode": "disabled",
"inventory_sync": False,
"inventory_map": {}
"device_inventory_map": {}
}):
self.device = PhysicalDevice(
self.mock_nb_device,
@@ -303,7 +303,7 @@ class TestPhysicalDevice(unittest.TestCase):
"device_cf": "zabbix_hostid",
"inventory_mode": "manual",
"inventory_sync": True,
"inventory_map": {
"device_inventory_map": {
"name": "name",
"serial": "serialno_a"
}