github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/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  }