github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/rabbitmq/util.go (about) 1 package rabbitmq 2 3 import ( 4 "github.com/hashicorp/terraform/helper/schema" 5 ) 6 7 func checkDeleted(d *schema.ResourceData, err error) error { 8 if err.Error() == "not found" { 9 d.SetId("") 10 return nil 11 } 12 13 return err 14 }