Revert "Better error message for LNG import error."

This reverts commit 1db5efc8bc.
This commit is contained in:
Jie Wang 2017-03-31 13:55:52 -07:00
parent 65c4b9ca38
commit 8308ed2246
1 changed files with 1 additions and 6 deletions

View File

@ -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 parameter 'localNetworkGateways' from '%s'", id.Path)
}
resGroup := id.ResourceGroup