Use glance client to delete an image
In compute/image tests the test image is created with the glance
client. We should delete it with the glance client as well.
Change-Id: I01f939ab58851c8def880a953b62cba0eff0e44b
diff --git a/tempest/api/compute/images/test_image_metadata.py b/tempest/api/compute/images/test_image_metadata.py
index c1faa4b..b497626 100644
--- a/tempest/api/compute/images/test_image_metadata.py
+++ b/tempest/api/compute/images/test_image_metadata.py
@@ -72,7 +72,7 @@
body = body['image'] if 'image' in body else body
cls.image_id = body['id']
cls.addClassResourceCleanup(test_utils.call_and_ignore_notfound_exc,
- cls.compute_images_client.delete_image,
+ cls.glance_client.delete_image,
cls.image_id)
image_file = six.BytesIO((b'*' * 1024))
if CONF.image_feature_enabled.api_v1: