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

Commit

Permalink
Avoid ValueError on null endpoints subsets.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jgiles committed Dec 20, 2017
1 parent 30b8ee4 commit 1d55a83
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kubernetes/client/models/v1_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ def subsets(self, subsets):
:param subsets: The subsets of this V1Endpoints.
:type: list[V1EndpointSubset]
"""
if subsets is None:
raise ValueError("Invalid value for `subsets`, must not be `None`")

self._subsets = subsets

def to_dict(self):
Expand Down

0 comments on commit 1d55a83

Please sign in to comment.