From e677eaac6b1dcd1a1e2009fd29120744927a2cdf Mon Sep 17 00:00:00 2001 From: Joe Topjian Date: Sun, 4 Sep 2016 02:51:22 +0000 Subject: [PATCH] provider/openstack: gophercloud migration: util --- builtin/providers/openstack/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/openstack/util.go b/builtin/providers/openstack/util.go index 93a8bfbc5..04ffa2a7c 100644 --- a/builtin/providers/openstack/util.go +++ b/builtin/providers/openstack/util.go @@ -3,14 +3,14 @@ package openstack import ( "fmt" + "github.com/gophercloud/gophercloud" "github.com/hashicorp/terraform/helper/schema" - "github.com/rackspace/gophercloud" ) // CheckDeleted checks the error to see if it's a 404 (Not Found) and, if so, // sets the resource ID to the empty string instead of throwing an error. func CheckDeleted(d *schema.ResourceData, err error, msg string) error { - errCode, ok := err.(*gophercloud.UnexpectedResponseCodeError) + errCode, ok := err.(*gophercloud.ErrUnexpectedResponseCode) if !ok { return fmt.Errorf("%s: %s", msg, err) }