From b05fa59fda8b50d2cc289eb90468dcc7d451e395 Mon Sep 17 00:00:00 2001 From: Ieva Date: Wed, 11 Jan 2023 14:15:32 +0000 Subject: [PATCH] add default value for scope (#767) --- docs/resources/role.md | 2 +- grafana/resource_role.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/resources/role.md b/docs/resources/role.md index 944afac60..fb71c2869 100644 --- a/docs/resources/role.md +++ b/docs/resources/role.md @@ -70,7 +70,7 @@ Required: Optional: -- `scope` (String) Scope to restrict the action to a set of resources (for example: `users:*` or `roles:customrole1`) +- `scope` (String) Scope to restrict the action to a set of resources (for example: `users:*` or `roles:customrole1`) Defaults to ``. ## Import diff --git a/grafana/resource_role.go b/grafana/resource_role.go index ec1158f6f..d693a495d 100644 --- a/grafana/resource_role.go +++ b/grafana/resource_role.go @@ -86,6 +86,7 @@ func ResourceRole() *schema.Resource { "scope": { Type: schema.TypeString, Optional: true, + Default: "", Description: "Scope to restrict the action to a set of resources (for example: `users:*` or `roles:customrole1`)", }, },