mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
"fix" plugin tests in 1.12.x
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
d77269a802
commit
e3034309b3
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ func Pull(name string, rs registry.Service, metaheader http.Header, authConfig *
|
|||
logrus.Debugf("pull.go: error in json.Unmarshal(): %v", err)
|
||||
return nil, err
|
||||
}
|
||||
if m.Config.MediaType != MediaTypeConfig {
|
||||
if m.Config.MediaType != MediaTypeConfig &&
|
||||
m.Config.MediaType != "application/vnd.docker.plugin.image.v0+json" {
|
||||
return nil, ErrUnsupportedMediaType
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue