mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 19:22:34 +08:00
Fixed issue with external snapshot publish
This commit is contained in:
@ -19,6 +19,7 @@ import (
|
||||
func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand) {
|
||||
if cmd.External {
|
||||
createExternalSnapshot(c, cmd)
|
||||
return
|
||||
}
|
||||
|
||||
cmd.Key = util.GetRandomString(32)
|
||||
@ -35,6 +36,7 @@ func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapsho
|
||||
func createExternalSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand) {
|
||||
metrics.M_Api_Dashboard_Snapshot_External.Inc(1)
|
||||
|
||||
cmd.External = false
|
||||
json, _ := json.Marshal(cmd)
|
||||
jsonData := bytes.NewBuffer(json)
|
||||
|
||||
|
Reference in New Issue
Block a user