Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

Commit ae74975

Browse files
committed
Avoid ValueError on null endpoints subsets.
This is a hacky workaround for: kubernetes-client#376 The client code is generated and should not be manually edited like this, but the error is blocking our use of the library.
1 parent e382e0d commit ae74975

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kubernetes/client/models/v1_endpoints.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ def subsets(self, subsets):
152152
:param subsets: The subsets of this V1Endpoints.
153153
:type: list[V1EndpointSubset]
154154
"""
155-
if subsets is None:
156-
raise ValueError("Invalid value for `subsets`, must not be `None`")
157-
158155
self._subsets = subsets
159156

160157
def to_dict(self):

0 commit comments

Comments
 (0)