Skip to content

Commit

Permalink
Fix ingress check issue (kubeflow#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yao Xiao authored Nov 6, 2020
1 parent 808ef35 commit 902ac16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/kubeflow/testing/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def wait_for_ingress(api_client,
while datetime.datetime.now() < end_time:
ingress = net_client_apps.read_namespaced_ingress(name, namespace)
try:
if len(ingress.status.load_balancer.ingress[0].hostname) == 0: # pylint: disable=len-as-condition
if len(ingress.status.load_balancer.ingress[0].hostname) != 0: # pylint: disable=len-as-condition
logging.info("Ingress %s in namespace %s is ready", name, namespace)
return ingress
except Exception: # pylint: disable=broad-except
Expand Down

0 comments on commit 902ac16

Please sign in to comment.