We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ea4dc commit 23c8876Copy full SHA for 23c8876
linode_api4/objects/base.py
@@ -449,7 +449,7 @@ def _populate(self, json):
449
if obj and isinstance(json[api_key], dict):
450
obj._populate(json[api_key])
451
self._set(prop_key, obj)
452
- elif prop.slug_relationship and not json[api_key] is None:
+ elif prop.slug_relationship and json[api_key] is not None:
453
# create an object of the expected type with the given slug
454
self._set(
455
prop_key,
0 commit comments