Skip to content

Commit

Permalink
TER-235: Use eveMetadta.ID as ID instead of the name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Caussat committed Mar 20, 2018
1 parent a0973be commit adf846e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ghost/resource_ghost_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,6 @@ func resourceGhostApp() *schema.Resource {
func resourceGhostAppCreate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*ghost.Client)

name := d.Get("name").(string)
d.SetId(name)

log.Printf("[INFO] Creating Ghost app %s", d.Get("name").(string))
app := expandGhostApp(d)

Expand All @@ -429,6 +426,8 @@ func resourceGhostAppCreate(d *schema.ResourceData, meta interface{}) error {
log.Fatalf("[ERROR] error: %v", err)
}

d.SetId(eveMetadata.ID)

return nil
}

Expand Down

0 comments on commit adf846e

Please sign in to comment.