CLI: Add command to migrate all datasources to use encrypted password fields (#17118)

closes: #17107
This commit is contained in:
Andrej Ocenas
2019-05-27 10:47:21 +02:00
committed by Carl Bergquist
parent b9181df212
commit 151b24b95f
14 changed files with 266 additions and 25 deletions
@@ -4,6 +4,7 @@ import (
"github.com/grafana/grafana/pkg/cmd/grafana-cli/logger"
m "github.com/grafana/grafana/pkg/cmd/grafana-cli/models"
s "github.com/grafana/grafana/pkg/cmd/grafana-cli/services"
"github.com/grafana/grafana/pkg/cmd/grafana-cli/utils"
"github.com/hashicorp/go-version"
)
@@ -27,7 +28,7 @@ func ShouldUpgrade(installed string, remote m.Plugin) bool {
return false
}
func upgradeAllCommand(c CommandLine) error {
func upgradeAllCommand(c utils.CommandLine) error {
pluginsDir := c.PluginDirectory()
localPlugins := s.GetLocalPlugins(pluginsDir)