Skip to content

Commit 2ac51ff

Browse files
authored
set app engine to empty if api not enabled (#2204)
Fixes #2188
1 parent b899a59 commit 2ac51ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

google/resource_google_project.go

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

0 commit comments

Comments
 (0)