mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 14:32:12 +08:00
use pluginName consistently when upgrading plugins
This commit is contained in:
@ -16,7 +16,7 @@ func upgradeCommand(c CommandLine) error {
|
||||
return err
|
||||
}
|
||||
|
||||
v, err2 := s.GetPlugin(localPlugin.Id, c.RepoDirectory())
|
||||
v, err2 := s.GetPlugin(pluginName, c.RepoDirectory())
|
||||
|
||||
if err2 != nil {
|
||||
return err2
|
||||
@ -24,9 +24,9 @@ func upgradeCommand(c CommandLine) error {
|
||||
|
||||
if ShouldUpgrade(localPlugin.Info.Version, v) {
|
||||
s.RemoveInstalledPlugin(pluginsDir, pluginName)
|
||||
return InstallPlugin(localPlugin.Id, "", c)
|
||||
return InstallPlugin(pluginName, "", c)
|
||||
}
|
||||
|
||||
logger.Infof("%s %s is up to date \n", color.GreenString("✔"), localPlugin.Id)
|
||||
logger.Infof("%s %s is up to date \n", color.GreenString("✔"), pluginName)
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user