Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1964936: fix error log for "oc adm catalog mirror" #836

Merged
merged 1 commit into from May 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cli/admin/catalog/mirror.go
Expand Up @@ -223,7 +223,7 @@ func (o *MirrorCatalogOptions) Complete(cmd *cobra.Command, args []string) error
fmt.Fprintf(w, " %s\t%s\n", imagemanifest.PlatformSpecString(manifest.Platform), manifest.Digest)
}
w.Flush()
return nil, fmt.Errorf("the image is a manifest list and contains multiple images - use --filter-by-os to select from:\n\n%s\n", buf.String())
return nil, fmt.Errorf("the image is a manifest list and contains multiple images - use --index-filter-by-os to select from:\n\n%s\n", buf.String())
},

ImageMetadataCallback: func(from string, i *info.Image, err error) error {
Expand Down