summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJimmy Bergman <jimmy@sigint.se>2011-04-20 14:06:23 +0200
committerJimmy Bergman <jimmy@sigint.se>2011-04-20 14:06:23 +0200
commitd992fbbde7c8e5274d80e2fce9c840e7209c78c6 (patch)
tree50b9b7d79158c4d5a5180a3a0c25fa72b97eef9c /nova/api
parent1a814ba56a696ce796ab7707eacc2ee065c448e8 (diff)
Change response format of CreateVolume to match EC2
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index bd4c9dcd4..2bbe4c368 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -613,7 +613,7 @@ class CloudController(object):
# TODO(vish): Instance should be None at db layer instead of
# trying to lazy load, but for now we turn it into
# a dict to avoid an error.
- return {'volumeSet': [self._format_volume(context, dict(volume))]}
+ return self._format_volume(context, dict(volume))
def delete_volume(self, context, volume_id, **kwargs):
volume_id = ec2utils.ec2_id_to_id(volume_id)