Skip to content

Commit

Permalink
Add path to google_pubsub_subscription
Browse files Browse the repository at this point in the history
The path is used to globally identify a subscription.
  • Loading branch information
dasch committed May 5, 2017
1 parent e5d92bc commit 67e9949
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/providers/google/resource_pubsub_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ func resourcePubsubSubscription() *schema.Resource {
ForceNew: true,
},

"path": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"push_config": &schema.Schema{
Type: schema.TypeList,
Optional: true,
Expand Down Expand Up @@ -113,6 +118,7 @@ func resourcePubsubSubscriptionCreate(d *schema.ResourceData, meta interface{})
}

d.SetId(res.Name)
d.Set("path", name)

return nil
}
Expand Down

0 comments on commit 67e9949

Please sign in to comment.