set app engine to empty if api not enabled

This commit is contained in:
Dana Hoffman 2018-10-09 11:25:24 -07:00 committed by Paddy Carver
parent a0979fe66a
commit 8f35c8285f

View File

@ -383,6 +383,7 @@ func resourceGoogleProjectRead(d *schema.ResourceData, meta interface{}) error {
d.Set("app_engine", []map[string]interface{}{})
} else if isApiNotEnabledError(err) {
log.Printf("[WARN] App Engine Admin API not enabled, please enable it to read App Engine info about project %q: %s", pid, err.Error())
d.Set("app_engine", []map[string]interface{}{})
} else {
appBlocks, err := flattenAppEngineApp(app)
if err != nil {