We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
None
linode
1 parent f7de35a commit 3f52e9eCopy full SHA for 3f52e9e
1 file changed
linode_api4/objects/linode.py
@@ -2006,7 +2006,7 @@ def interfaces_settings(self) -> LinodeInterfacesSettings:
2006
return self._interfaces_settings
2007
2008
@property
2009
- def linode_interfaces(self) -> list[LinodeInterface]:
+ def linode_interfaces(self) -> Optional[list[LinodeInterface]]:
2010
"""
2011
All interfaces for this Linode.
2012
@@ -2015,6 +2015,8 @@ def linode_interfaces(self) -> list[LinodeInterface]:
2015
:returns: An ordered list of interfaces under this Linode.
2016
2017
2018
+ if self.interface_generation != "linode":
2019
+ return None
2020
if not hasattr(self, "_interfaces"):
2021
result = self._client.get(
2022
"{}/interfaces".format(Instance.api_endpoint),
0 commit comments