mirror of
https://github.com/containers/skopeo.git
synced 2025-09-20 17:38:25 +00:00
drop the Registry field in output - images are not fully qualified
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -52,7 +52,6 @@ type imageInspect struct {
|
||||
Config *containerTypes.Config
|
||||
Architecture string
|
||||
Os string
|
||||
Registry string
|
||||
}
|
||||
|
||||
func validateName(name string) error {
|
||||
@@ -241,7 +240,7 @@ func validateRepoName(name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func makeImageInspect(img *image.Image, index, tag string, dgst digest.Digest, tagList []string) *imageInspect {
|
||||
func makeImageInspect(img *image.Image, tag string, dgst digest.Digest, tagList []string) *imageInspect {
|
||||
var digest string
|
||||
if err := dgst.Validate(); err == nil {
|
||||
digest = dgst.String()
|
||||
@@ -258,7 +257,6 @@ func makeImageInspect(img *image.Image, index, tag string, dgst digest.Digest, t
|
||||
Config: img.Config,
|
||||
Architecture: img.Architecture,
|
||||
Os: img.OS,
|
||||
Registry: index,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user