Skip to content

Commit 73d4732

Browse files
Copilottobio
andcommitted
Address PR feedback: use jsontypes, remove redundant code, add helper functions
Co-authored-by: tobio <[email protected]>
1 parent 59395dd commit 73d4732

File tree

7 files changed

+555
-605
lines changed

7 files changed

+555
-605
lines changed

docs/resources/elasticsearch_security_role.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
page_title: "elasticstack_elasticsearch_security_role Resource - terraform-provider-elasticstack"
55
subcategory: "Security"
66
description: |-
7-
Adds and updates roles in the native realm. See the security API put role documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html for more details.
7+
Adds and updates roles in the native realm. See the role API documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html for more details.
88
---
99

1010
# elasticstack_elasticsearch_security_role (Resource)
1111

12-
Adds and updates roles in the native realm. See the [security API put role documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html) for more details.
12+
Adds and updates roles in the native realm. See the [role API documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html) for more details.
1313

1414
## Example Usage
1515

internal/elasticsearch/security/role/create.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ import (
99
func (r *roleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) {
1010
diags := r.update(ctx, req.Plan, &resp.State)
1111
resp.Diagnostics.Append(diags...)
12-
if resp.Diagnostics.HasError() {
13-
return
14-
}
1512
}

0 commit comments

Comments
 (0)