From 0a9a6b49194a145ee2a3a236031f8507d6b1e8ac Mon Sep 17 00:00:00 2001 From: Francis Chuang Date: Wed, 10 Apr 2024 13:16:31 +1000 Subject: [PATCH] Fix role deletion --- path_roles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path_roles.go b/path_roles.go index 3076e51..c146715 100644 --- a/path_roles.go +++ b/path_roles.go @@ -296,7 +296,7 @@ func (b *grafanaBackend) pathRolesWrite(ctx context.Context, req *logical.Reques } func (b *grafanaBackend) pathRolesDelete(ctx context.Context, req *logical.Request, d *framework.FieldData) (*logical.Response, error) { - roleName := d.Get("role").(string) + roleName := d.Get("name").(string) if roleName == "" { return logical.ErrorResponse("missing role"), nil }