fix isnotfound

remove changes to isnotfound
pull/8/head
Jesse Haka 2018-03-19 23:28:39 +02:00
parent ebae09e741
commit 70c2baaff8
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ func waitLoadbalancerDeleted(client *gophercloud.ServiceClient, loadbalancerID s
err := wait.ExponentialBackoff(backoff, func() (bool, error) {
_, err := loadbalancers.Get(client, loadbalancerID).Extract()
if err != nil {
if err == ErrNotFound {
if isNotFound(err) {
return true, nil
}
return false, err