Skip to content

Commit 98e0cbb

Browse files
committed
tmp
1 parent 49abd34 commit 98e0cbb

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

logdna/request_types.go

-8
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ type childOrgPutRequest struct {
8585
Retention int `json:"retention"`
8686
}
8787

88-
type childOrgDeleteRequest struct{}
89-
9088
func (view *viewRequest) CreateRequestBody(d *schema.ResourceData) diag.Diagnostics {
9189
// This function pulls from the schema in preparation to JSON marshal
9290
var diags diag.Diagnostics
@@ -200,12 +198,6 @@ func (childOrg *childOrgPutRequest) CreateRequestBody(d *schema.ResourceData) di
200198
return diags
201199
}
202200

203-
func (childOrg *childOrgDeleteRequest) CreateRequestBody(d *schema.ResourceData) diag.Diagnostics {
204-
var diags diag.Diagnostics
205-
206-
return diags
207-
}
208-
209201
func aggregateAllChannelsFromSchema(
210202
d *schema.ResourceData,
211203
diags *diag.Diagnostics,

logdna/resource_child_organization.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,14 @@ func resourceChildOrgUpdate(ctx context.Context, d *schema.ResourceData, m inter
119119
}
120120

121121
func resourceChildOrgDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
122-
var diags diag.Diagnostics
123122
pc := m.(*providerConfig)
124123
childOrgID := d.Id()
125124

126-
childOrg := childOrgDeleteRequest{}
127-
if diags = childOrg.CreateRequestBody(d); diags.HasError() {
128-
return diags
129-
}
130-
131125
req := newRequestConfig(
132126
pc,
133127
"DELETE",
134128
fmt.Sprintf("/v1/enterprise/account/%s", childOrgID),
135-
childOrg,
129+
nil,
136130
)
137131

138132
body, err := req.MakeRequest()

0 commit comments

Comments
 (0)