grafana-cli: update plugins ls command (#63492)

This commit is contained in:
Andres Martinez Gotor
2023-02-22 09:24:13 +01:00
committed by GitHub
parent b069fd81b2
commit 45e478182b
6 changed files with 25 additions and 6 deletions
@@ -31,7 +31,11 @@ func (cmd Command) upgradeCommand(c utils.CommandLine) error {
return fmt.Errorf("failed to remove plugin '%s': %w", pluginName, err)
}
return installPlugin(context.Background(), pluginName, "", c)
err := installPlugin(context.Background(), pluginName, "", c)
if err == nil {
logRestartNotice()
}
return err
}
logger.Infof("%s %s is up to date \n", color.GreenString("✔"), pluginName)