From f6f46654999bbe470932dec700c410862f5e64a4 Mon Sep 17 00:00:00 2001 From: Robert Spadaro <55590532+squintfox@users.noreply.github.com> Date: Thu, 22 Feb 2024 09:18:27 -0500 Subject: [PATCH] https://github.com/netbox-community/pynetbox/pull/598 --- pynetbox/core/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynetbox/core/response.py b/pynetbox/core/response.py index d6651b9..c35e64f 100644 --- a/pynetbox/core/response.py +++ b/pynetbox/core/response.py @@ -67,7 +67,7 @@ def flatten_custom(custom_dict): current_val = val.get("id", val) if isinstance(val, list): - current_val = [v.get("id") if isinstance(v, dict) else v for v in val] + current_val = [v.get("id", v) if isinstance(v, dict) else v for v in val] ret[k] = current_val return ret