Merge pull request #28963 from vieux/refactor_plugin_install

refactor plugin install
Upstream-commit: cff6855751
Component: cli
This commit is contained in:
Tibor Vass
2016-12-05 12:00:29 -08:00
committed by GitHub
2 changed files with 23 additions and 12 deletions

View File

@ -12,7 +12,7 @@ import (
// PluginInspectWithRaw inspects an existing plugin
func (cli *Client) PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) {
resp, err := cli.get(ctx, "/plugins/"+name, nil, nil)
resp, err := cli.get(ctx, "/plugins/"+name+"/json", nil, nil)
if err != nil {
if resp.statusCode == http.StatusNotFound {
return nil, nil, pluginNotFoundError{name}