Skip to content

Commit

Permalink
set app engine to empty if api not enabled (#2204)
Browse files Browse the repository at this point in the history
Fixes #2188
  • Loading branch information
danawillow authored Oct 10, 2018
1 parent b899a59 commit 2ac51ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions google/resource_google_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2ac51ff

Please sign in to comment.