mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CLI: Allow installing custom binary plugins (#17551)
Make sure all data is sent to API to be able to select correct archive version.
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"errors"
|
||||
|
||||
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
|
||||
s "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
|
||||
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
|
||||
)
|
||||
|
||||
@@ -24,7 +23,7 @@ func listversionsCommand(c utils.CommandLine) error {
|
||||
|
||||
pluginToList := c.Args().First()
|
||||
|
||||
plugin, err := s.GetPlugin(pluginToList, c.GlobalString("repo"))
|
||||
plugin, err := c.ApiClient().GetPlugin(pluginToList, c.GlobalString("repo"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user