Azure / magic-module-specs

The magic module resource definitions for Azure.
MIT License
3 stars 9 forks source link

MM defined incorrect tags variable for sub resource #117

Open neil-yechenwei opened 5 years ago

neil-yechenwei commented 5 years ago

Error: azurerm\resource_arm_private_link_service.go:844:19: tags.Expand undefined (type map[string]interface {} has no field or method Expand) azurerm\resource_arm_private_link_service.go:844:27: undefined: t

func expandArmPrivateLinkServicePrivateEndpoint(input []interface{}) *network.PrivateEndpoint {     if len(input) == 0 {         return nil     }     v := input[0].(map[string]interface{})     id := v["id"].(string)     location := azure.NormalizeLocation(v["location"].(string))     tags := v["tags"].(map[string]interface{})     etag := v["etag"].(string)     result := network.PrivateEndpoint{         Etag: utils.String(etag),         ID: utils.String(id),         Location: utils.String(location),         Tags: tags.Expand(t),     }     return &result }

neil-yechenwei commented 5 years ago

After checked, we can specify the tags for sub resource "private endpoint" while creating parent resource "private link service". Attached snapshot.

Capture Capture2