Skip to content

Commit 2019c6a

Browse files
committed
Resolved linter errors
1 parent 4dad390 commit 2019c6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linode_api4/objects/lke.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from linode_api4.errors import UnexpectedResponseError
12
from linode_api4.objects import (
23
Base, DerivedBase, Property, Region, Type, Instance, MappedObject
34
)
@@ -103,7 +104,7 @@ def api_endpoints(self):
103104
if not hasattr(self, "_api_endpoints"):
104105
results = self._client.get("{}/api-endpoints".format(LKECluster.api_endpoint), model=self)
105106

106-
self._api_endpoints = [MappedObject(**c) for c in results["data"]]
107+
self._api_endpoints = [MappedObject(**c) for c in results["data"]] # pylint: disable=attribute-defined-outside-init
107108

108109
return self._api_endpoints
109110

@@ -131,7 +132,8 @@ def kubeconfig(self):
131132
if not hasattr(self, "_kubeconfig"):
132133
result = self._client.get("{}/kubeconfig".format(LKECluster.api_endpoint), model=self)
133134

134-
self._kubeconfig = result["kubeconfig"]
135+
self._kubeconfig = result["kubeconfig"] # pylint: disable=attribute-defined-outside-init
136+
135137

136138
return self._kubeconfig
137139

0 commit comments

Comments
 (0)