Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Conversation

@poncovka
Copy link
Contributor

If there are multiple images with the same reference, use only the latest image. For example, the v1/aws/us-east-1/rhel_9.1.0_hvm_x86_64_hourly2 reference can be used by only one image provided by the CID and it should be the latest one.

If there are multiple images with the same reference, use only the latest image.
For example, the `v1/aws/us-east-1/rhel_9.1.0_hvm_x86_64_hourly2` reference can
be used by only one image provided by the CID and it should be the latest one.
miyunari

This comment was marked as resolved.

name = entry.content["name"]
# Compare the data entry with the last inserted entry with
# the same reference. If the new entry is older, do nothing.
ref = entry.filename
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cant follow 100%, could you help me and explain the details a bit? :)

My understanding is that the filename is always unique, so that we never need to compare it with other image data and never filter something? 🙈

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants