Fix crash when group_list has content in network data

This commit is contained in:
Kienan Stewart 2020-10-24 21:26:54 -04:00
parent 8c17f720c8
commit a4a1bc5f1f
1 changed files with 28 additions and 26 deletions

View File

@ -8,7 +8,6 @@ import (
rapi "burntworld.ca/go-rapi-client"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func dataSourceNetworks() *schema.Resource {
@ -48,9 +47,12 @@ func dataSourceNetworks() *schema.Resource {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeList,
Elemb: &schema.Schema{
Type: schema.TypeString,
},
},
},
"inst_list": &schema.Schema{
Type: schema.TypeList,
Computed: true,