Skip to content

Commit

Permalink
Avoid panic in usage_export_bucket (#2942)
Browse files Browse the repository at this point in the history
Merged PR #2942.
  • Loading branch information
chrisst authored and modular-magician committed Jan 9, 2020
1 parent d338896 commit 2b851e7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func resourceProjectUsageBucketRead(d *schema.ResourceData, meta interface{}) er
if p.UsageExportLocation == nil {
log.Printf("[WARN] Removing usage export location resource %s because it's not enabled server-side.", project)
d.SetId("")
return nil
}

d.Set("project", project)
Expand Down

0 comments on commit 2b851e7

Please sign in to comment.