Commit b40086fe authored by Yann KAISER's avatar Yann KAISER

Updated the service template

parent 2e0c1e9f
......@@ -34,7 +34,7 @@ func resourceServiceTemplate() *schema.Resource {
},
"role": &schema.Schema{
Type: schema.TypeSet,
Type: schema.TypeList,
Required: true,
Elem: resourceServiceRole(),
},
......@@ -72,8 +72,8 @@ func resourceServiceTemplateCreate(d *schema.ResourceData, m interface{}) error
}
if v, ok := d.GetOk("role"); ok {
roles := v.(*schema.Set)
for _, r := range roles.List() {
roles := v.([]interface{})
for _, r := range roles {
rMap := r.(map[string]interface{})
role := CreateRole(rMap)
st.Roles = append(st.Roles, role)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment