Skip to content

Commit

Permalink
TER-239: Fix issue when ghost app has been deleted using cloud deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Caussat committed Mar 26, 2018
1 parent cde654f commit da769c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ghost/resource_ghost_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@ func resourceGhostAppRead(d *schema.ResourceData, meta interface{}) error {
if err == nil {
fmt.Println("[INFO] App retrieved: " + d.Id())
} else {
log.Fatalf("[ERROR] error reading Ghost app: %v", err)
d.SetId("")
fmt.Println("[INFO] App doesn't exist or has been deleted: %v", err)
return nil
}

if err := flattenGhostApp(d, app); err != nil {
Expand Down

0 comments on commit da769c1

Please sign in to comment.