Even better error message.
This commit is contained in:
parent
7011912c7d
commit
76117fa9f6
|
@ -102,12 +102,7 @@ func resourceArmLocalNetworkGatewayRead(d *schema.ResourceData, meta interface{}
|
|||
}
|
||||
name := id.Path["localNetworkGateways"]
|
||||
if name == "" {
|
||||
var pathString, sp string
|
||||
for key, value := range id.Path {
|
||||
pathString += fmt.Sprintf("%s'%s:%s'", sp, key, value)
|
||||
sp = ", "
|
||||
}
|
||||
return fmt.Errorf("Cannot find 'localNetworkGateways' in [%s], make sure it is specified in the ID parameter", pathString)
|
||||
return fmt.Errorf("Cannot find 'localNetworkGateways' in '%s', make sure it is specified in the ID parameter", d.Id())
|
||||
}
|
||||
resGroup := id.ResourceGroup
|
||||
|
||||
|
|
Loading…
Reference in New Issue