Skip to content

Commit 5576851

Browse files
committed
rename datasource
1 parent 37d66c4 commit 5576851

File tree

2 files changed

+38
-19
lines changed

2 files changed

+38
-19
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package baremetal
2+
3+
import (
4+
"context"
5+
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
7+
)
8+
9+
func DataEasyPartitioning() *schema.Resource {
10+
return &schema.Resource{
11+
ReadContext: dataEasyPartitioningRead,
12+
Schema: map[string]*schema.Schema{
13+
"swap": {
14+
Type: schema.TypeBool,
15+
Optional: true,
16+
Default: true,
17+
Description: "set swap partition",
18+
},
19+
"ext_4": {
20+
Type: schema.TypeBool,
21+
Optional: true,
22+
Default: true,
23+
Description: "set ext_4 partition",
24+
},
25+
"ext_4_name": {
26+
Type: schema.TypeString,
27+
Optional: true,
28+
Default: "/data",
29+
Description: "ext_4 partition's name",
30+
},
31+
},
32+
}
33+
}
34+
35+
func dataEasyPartitioningRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
36+
var diags diag.Diagnostics
37+
return diags
38+
}

internal/services/baremetal/partitioning_data_source.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)