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:
@@ -44,6 +44,8 @@ func createExternalDashboardSnapshot(cmd models.CreateDashboardSnapshotCommand)
|
|||||||
"name": cmd.Name,
|
"name": cmd.Name,
|
||||||
"expires": cmd.Expires,
|
"expires": cmd.Expires,
|
||||||
"dashboard": cmd.Dashboard,
|
"dashboard": cmd.Dashboard,
|
||||||
|
"key": cmd.Key,
|
||||||
|
"deleteKey": cmd.DeleteKey,
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBytes, err := simplejson.NewFromAny(message).Encode()
|
messageBytes, err := simplejson.NewFromAny(message).Encode()
|
||||||
|
|||||||
Reference in New Issue
Block a user