Add some resources and data-resources, fix bugs

This commit is contained in:
stSolo
2022-03-18 20:49:16 +03:00
parent 9379289e58
commit bf179b9d12
17 changed files with 1962 additions and 177 deletions

View File

@@ -25,6 +25,8 @@ Visit https://github.com/rudecs/terraform-provider-decort for full source code p
package decort
import (
"strconv"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
@@ -43,7 +45,7 @@ func dataSourceGridRead(d *schema.ResourceData, m interface{}) error {
if err != nil {
return err
}
d.SetId("1234")
d.SetId(strconv.Itoa(grid.Id))
flattenGrid(d, grid)
return nil