Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #215 from roycaihw/fix/dynamic-e2e-exception
Browse files Browse the repository at this point in the history
dynamic-e2e: fix the error expectation in the discovery retry logic
  • Loading branch information
k8s-ci-robot authored Oct 14, 2020
2 parents a5e529d + acdd058 commit 2da2b98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dynamic/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,11 @@ def __search(self, parts, resources, reqParams):
# Check if we've requested resources for this group
if not resourcePart.resources:
prefix, group, version = reqParams[0], reqParams[1], part
resourcePart.resources = self.get_resources_for_api_version(
prefix, group, part, resourcePart.preferred)
try:
resourcePart.resources = self.get_resources_for_api_version(
prefix, group, part, resourcePart.preferred)
except NotFoundError:
raise ResourceNotFoundError

self._cache['resources'][prefix][group][version] = resourcePart
self.__update_cache = True
Expand Down

0 comments on commit 2da2b98

Please sign in to comment.