Skip to content

Commit 23c8876

Browse files
Update linode_api4/objects/base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d5ea4dc commit 23c8876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linode_api4/objects/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def _populate(self, json):
449449
if obj and isinstance(json[api_key], dict):
450450
obj._populate(json[api_key])
451451
self._set(prop_key, obj)
452-
elif prop.slug_relationship and not json[api_key] is None:
452+
elif prop.slug_relationship and json[api_key] is not None:
453453
# create an object of the expected type with the given slug
454454
self._set(
455455
prop_key,

0 commit comments

Comments
 (0)