drop the Registry field in output - images are not fully qualified

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca
2016-01-21 10:31:25 +01:00
parent 6ea444ad5a
commit e1291313aa
4 changed files with 3 additions and 6 deletions

View File

@@ -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,
}
}