terraform/builtin/providers/rabbitmq/util.go

15 lines
217 B
Go

package rabbitmq
import (
"github.com/hashicorp/terraform/helper/schema"
)
func checkDeleted(d *schema.ResourceData, err error) error {
if err.Error() == "not found" {
d.SetId("")
return nil
}
return err
}