Merge "Don't crash on fetching network policy."

This commit is contained in:
Zuul 2020-09-29 09:18:16 +00:00 committed by Gerrit Code Review
commit 485a792467
1 changed files with 2 additions and 2 deletions

View File

@ -319,8 +319,8 @@ def get_kuryrnetworkpolicy_crds(namespace=None):
LOG.exception("KuryrNetworkPolicy CRD not found") LOG.exception("KuryrNetworkPolicy CRD not found")
return [] return []
except k_exc.K8sClientException: except k_exc.K8sClientException:
LOG.exception("Kubernetes Client Exception") LOG.exception("Exception during fetch KuryrNetworkPolicies. Retrying.")
raise raise k_exc.ResourceNotReady(knp_path)
return knps.get('items', []) return knps.get('items', [])