github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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  }