Change V2 image tests to actually run V2 image code

The current tests for image do not run v2 image code, changing
that portion also made it's only test fail.
I opted to change the image delete code and not the test, since
passing the object ID is more in line with the rest of the
project code.

Change-Id: I62e13c063a5d68279dbbf31e59266db6285d73bf
This commit is contained in:
Steve Martinelli 2014-07-25 01:16:01 -04:00
parent 4d3d287dd7
commit 6e1fa8b27d
2 changed files with 2 additions and 2 deletions
openstackclient
image/v2
tests/image/v2

@ -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):

@ -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