-
Notifications
You must be signed in to change notification settings - Fork 141
syscontainers: read labels from v1Compatibility #1170
syscontainers: read labels from v1Compatibility #1170
Conversation
@@ -1646,7 +1646,13 @@ def _inspect_system_branch(self, repo, imagebranch): | |||
virtual_size = self._get_virtual_size(repo, manifest) | |||
if 'Labels' in manifest: | |||
labels = manifest['Labels'] | |||
else: | |||
elif 'history' in manifest: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be time to educate Tom, but should this be an if rather than an elif?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, I'd like to take this branch only if the first 'if' was not satisfied.
If the labels are found in manifest['Labels']
we don't need to look into 'history'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@giuseppe Thanks for the info. FYI some of the tests aren't looking happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is because of storage :( it is failing since long time but it should not be related to this PR
a89af7b
to
46d4fa1
Compare
📌 Commit 46d4fa1 has been approved by |
Images coming from registry.access.redhat.com through "skopeo copy" have this information in the v1Compatibility block. Use this information so we can correctly catch "atomic.run". Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: #1170 Approved by: baude
@rh-atomic-bot retry |
Images coming from registry.access.redhat.com through "skopeo copy" have this information in the v1Compatibility block. Use this information so we can correctly catch "atomic.run". Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: #1170 Approved by: baude
Images coming from registry.access.redhat.com through "skopeo copy" have this information in the "v1Compatibility" block. Use this information so we can correctly catch "atomic.run". Signed-off-by: Giuseppe Scrivano <[email protected]>
46d4fa1
to
12edeeb
Compare
bot, retest this please |
@rh-atomic-bot r=baude 12edeeb |
Images coming from registry.access.redhat.com through "skopeo copy" have this information in the "v1Compatibility" block. Use this information so we can correctly catch "atomic.run". Signed-off-by: Giuseppe Scrivano <[email protected]> Closes: #1170 Approved by: baude
Images coming from registry.access.redhat.com through "skopeo copy"
have this information in the v1Compatibility block. Use this
information so we can correctly catch "atomic.run".
Signed-off-by: Giuseppe Scrivano [email protected]