mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
fix: images command not truncating image name/tag (#851)
Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
815366024b
commit
4bc7a2c824
@@ -1568,7 +1568,7 @@ func (service mockService) getAllImages(ctx context.Context, config searchConfig
|
||||
image.Digest = "DigestsAreReallyLong"
|
||||
image.Size = "123445"
|
||||
|
||||
str, err := image.string(*config.outputFormat)
|
||||
str, err := image.string(*config.outputFormat, len(image.RepoName), len(image.Tag))
|
||||
if err != nil {
|
||||
channel <- stringResult{"", err}
|
||||
|
||||
@@ -1590,7 +1590,7 @@ func (service mockService) getImageByName(ctx context.Context, config searchConf
|
||||
image.Digest = "DigestsAreReallyLong"
|
||||
image.Size = "123445"
|
||||
|
||||
str, err := image.string(*config.outputFormat)
|
||||
str, err := image.string(*config.outputFormat, len(image.RepoName), len(image.Tag))
|
||||
if err != nil {
|
||||
channel <- stringResult{"", err}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user