summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-10-05 15:21:31 +0200
committerSoren Hansen <soren.hansen@rackspace.com>2010-10-05 15:21:31 +0200
commit10bbf9f638b5c8c9182984cc7e22f732b194476f (patch)
tree5a1f97571ab36252ff3f35edd9e9f2c1ffb94d1f /nova/api
parent394c5ae180ed25f7e617f6c43f9a88f003e5d2ea (diff)
Stub out ec2.images.list() for unit tests.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/images.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/api/ec2/images.py b/nova/api/ec2/images.py
index cb54cdda2..f0a43dad6 100644
--- a/nova/api/ec2/images.py
+++ b/nova/api/ec2/images.py
@@ -69,6 +69,9 @@ def list(context, filter_list=[]):
optionally filtered by a list of image_id """
+ if FLAGS.connection_type == 'fake':
+ return [{ 'imageId' : 'bar'}]
+
# FIXME: send along the list of only_images to check for
response = conn(context).make_request(
method='GET',