Skip to content

Commit

Permalink
Avoid panic in usage_export_bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisst committed Jan 8, 2020
1 parent 96894e3 commit f924814
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 f924814

Please sign in to comment.