VSChina / magic-modules

Magic Modules: Automagically generate Google Cloud Platform support for OSS
Apache License 2.0
1 stars 4 forks source link

no `location` variables declared #79

Closed njuCZ closed 4 years ago

njuCZ commented 4 years ago

using file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json

it generates terraform codes like this

name := d.Get("name").(string)
    resourceGroup := d.Get("resource_group").(string)
    configServerProperties := d.Get("config_server_properties").([]interface{})
    trace := d.Get("trace").([]interface{})
    t := d.Get("tags").(map[string]interface{})

    resource := appplatform.ServiceResource{
        Location: utils.String(location),
        ......
    }

however, the location variable is not declared