1
0
Fork 0

Use cache when testing for bundle existence

This commit is contained in:
Maurizio Porrato 2023-08-04 09:05:17 +01:00
parent 65226dba1a
commit 1480a91d85
1 changed files with 3 additions and 1 deletions

View File

@ -298,7 +298,9 @@ class Operator:
:param operator_version: Version to check for
:return: True if the operator contains a bundle for such version
"""
return Bundle.probe(self.bundle_path(operator_version))
return operator_version in self._bundle_cache or Bundle.probe(
self.bundle_path(operator_version)
)
@cached_property
def channels(self) -> Set[str]: