Fix decode tags value error when call get /v2/<name>/tags/list in registry api v2.

Signed-off-by: Meaglith Ma <genedna@gmail.com>
Upstream-commit: 221e9624e3a7a7a9b81ffda9930657352080e32d
Component: engine
This commit is contained in:
Meaglith Ma
2015-03-12 03:45:01 +08:00
committed by Derek McGowan
parent 53a187728a
commit 503249b833

View File

@ -352,8 +352,8 @@ func (r *Session) PutV2ImageManifest(ep *Endpoint, imageName, tagName string, si
}
type remoteTags struct {
name string
tags []string
Name string
Tags []string
}
// Given a repository name, returns a json array of string tags
@ -393,5 +393,5 @@ func (r *Session) GetV2RemoteTags(ep *Endpoint, imageName string, auth *RequestA
if err != nil {
return nil, fmt.Errorf("Error while decoding the http response: %s", err)
}
return remote.tags, nil
return remote.Tags, nil
}