Sfoglia il codice sorgente

Merge pull request #29089 from vieux/fix_plugin_tests

[1.12.x] "fix" plugin tests
Victor Vieux 8 anni fa
parent
commit
0c3e2e1556
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      plugin/distribution/pull.go

+ 2 - 1
plugin/distribution/pull.go

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