Merge pull request #46680 from vvoland/c8d-history-off-by-one
c8d/history: Fill ID for parents without the label
This commit is contained in:
commit
74641d2006
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ func (i *ImageService) ImageHistory(ctx context.Context, name string) ([]*imaget
|
|||
|
||||
foundNext := false
|
||||
for _, img := range parents {
|
||||
if _, ok := img.Labels[imageLabelClassicBuilderParent]; ok {
|
||||
_, hasLabel := img.Labels[imageLabelClassicBuilderParent]
|
||||
if !foundNext || hasLabel {
|
||||
currentImg = img
|
||||
foundNext = true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue