Skip to content

Commit 2130c66

Browse files
committed
Use enum
1 parent 796a314 commit 2130c66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linode_api4/objects/linode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ def linode_interfaces(self) -> Optional[list[LinodeInterface]]:
20162016
:rtype: Optional[list[LinodeInterface]]
20172017
"""
20182018

2019-
if self.interface_generation != "linode":
2019+
if self.interface_generation != InterfaceGeneration.LINODE:
20202020
return None
20212021
if not hasattr(self, "_interfaces"):
20222022
result = self._client.get(

0 commit comments

Comments
 (0)