From 04a2fb6fd1f772d3804c8a4a0e2df0f35b2aa579 Mon Sep 17 00:00:00 2001 From: Dan Smalley <1250226+dan-smalley@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:44:53 -0400 Subject: [PATCH] Updated cProps call to use the `.items()` function of the dictionary to fix the "too many items to unpack error" when attempting to load a device with cProps defined via the Device API router. --- Products/ZenModel/ZDeviceLoader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/ZenModel/ZDeviceLoader.py b/Products/ZenModel/ZDeviceLoader.py index 176f0682cf..8e590c73bb 100644 --- a/Products/ZenModel/ZDeviceLoader.py +++ b/Products/ZenModel/ZDeviceLoader.py @@ -239,7 +239,7 @@ def createDevice(): # Now set the custom properties if cProperties is not None: - for prop, value in cProperties: + for prop, value in cProperties.items(): self.setCustomProperty(device, prop, value) return '/'.join(device.getPhysicalPath())