mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
set app engine to empty if api not enabled
This commit is contained in:
parent
a0979fe66a
commit
8f35c8285f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user