diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-07-25 22:49:26 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-07-25 22:49:26 +0000 |
| commit | 01f7a5f9f59705deb5c800b78457f69c1e73cdbd (patch) | |
| tree | bad15a013ea927d617e26fdb03f5f5a23889cac2 /openstackclient | |
| parent | e0cf68f995d3f3b0bb6b6a455a6858db7a7139c2 (diff) | |
| parent | 6e1fa8b27df4f0697f3f44f710469792358e6c50 (diff) | |
| download | python-openstackclient-01f7a5f9f59705deb5c800b78457f69c1e73cdbd.tar.gz | |
Merge "Change V2 image tests to actually run V2 image code"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/image/v2/image.py | 2 | ||||
| -rw-r--r-- | openstackclient/tests/image/v2/test_image.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 08897b2b..67cb16b6 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -48,7 +48,7 @@ class DeleteImage(command.Command): image_client.images, parsed_args.image, ) - image_client.images.delete(image) + image_client.images.delete(image.id) class ListImage(lister.Lister): diff --git a/openstackclient/tests/image/v2/test_image.py b/openstackclient/tests/image/v2/test_image.py index ef84e2c0..9dbdad5c 100644 --- a/openstackclient/tests/image/v2/test_image.py +++ b/openstackclient/tests/image/v2/test_image.py @@ -15,7 +15,7 @@ import copy -from openstackclient.image.v1 import image +from openstackclient.image.v2 import image from openstackclient.tests import fakes from openstackclient.tests.image.v2 import fakes as image_fakes |
