lib/tools/info: mapper-oci-uptodate: adapt to oras-py 0.2 api change

This commit is contained in:
Ricardo Pardini
2025-04-12 09:30:08 +02:00
committed by Igor
parent 9e5ca480d2
commit 484aac7df2

View File

@@ -99,9 +99,8 @@ def check_oci_up_to_date_cache(oci_target: str, really_check: bool = False):
log.debug(f"No cache file for '{oci_target}'")
try:
container = client.remote.get_container(oci_target)
client.remote.load_configs(container)
manifest = client.remote.get_manifest(container)
container = client.get_container(oci_target)
manifest = client.get_manifest(container)
log.debug(f"Got manifest for '{oci_target}'.")
ret["up-to-date"] = True
ret["reason"] = "manifest_exists"