Fix polling for designatev2._resource_absent
Change-Id: Ia06f54e7de74ac4b159a48b3588817cdb91cd8d4
diff --git a/_states/designatev2.py b/_states/designatev2.py
index 54e532a..d403862 100644
--- a/_states/designatev2.py
+++ b/_states/designatev2.py
@@ -29,7 +29,7 @@
)
except Exception as e:
log.exception('Designate {0} create failed with {1}'.
- format(resource, e))
+ format(resource, e))
return _failed('create', name, resource)
if waiter:
if not waiter(name, cloud_name):
@@ -78,7 +78,7 @@
log.error('Designate delete {0} failed with {1}'.format(resource, e))
return _failed('delete', name, resource)
if waiter:
- if not waiter:
+ if not waiter(name, cloud_name):
return _failed('delete', name, resource)
return _succeeded('delete', name, resource)