Merge pull request #1007 from cclauss/patch-1
Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
commit
3634a72ddc
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user