mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
Fix key and deleteKey being ignored when creating a snapshot with external=true set (#33686)
* Update dashboard_snapshot.go This is to address: https://github.com/grafana/grafana/issues/33665 The key and deleteKey fields are not honoured when creating a snapshot with external:true set * removed whitespace
This commit is contained in:
parent
917a9ace57
commit
2fc9c6ca58
@ -44,6 +44,8 @@ func createExternalDashboardSnapshot(cmd models.CreateDashboardSnapshotCommand)
|
||||
"name": cmd.Name,
|
||||
"expires": cmd.Expires,
|
||||
"dashboard": cmd.Dashboard,
|
||||
"key": cmd.Key,
|
||||
"deleteKey": cmd.DeleteKey,
|
||||
}
|
||||
|
||||
messageBytes, err := simplejson.NewFromAny(message).Encode()
|
||||
|
Loading…
Reference in New Issue
Block a user