Merge pull request #1007 from cclauss/patch-1

Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
Kubernetes Prow Robot 2019-12-23 11:23:33 -08:00 committed by GitHub
commit 3634a72ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ def create_from_dict(k8s_client, data, verbose=False, namespace='default',
for yml_object in data["items"]:
# Mitigate cases when server returns a xxxList object
# See kubernetes-client/python#586
if kind is not "":
if kind != "":
yml_object["apiVersion"] = data["apiVersion"]
yml_object["kind"] = kind
try: