Skip to content

Commit

Permalink
Make fake image match SetLabel behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Brown <jabrown85@gmail.com>
  • Loading branch information
jabrown85 committed Aug 27, 2020
1 parent adc437f commit e603eda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fakes/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func (i *Image) Rebase(baseTopLayer string, newBase imgutil.Image) error {
}

func (i *Image) SetLabel(k string, v string) error {
if i.labels == nil {
i.labels = map[string]string{}
}
i.labels[k] = v
return nil
}
Expand Down

0 comments on commit e603eda

Please sign in to comment.