summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJosh Durgin <joshd@hq.newdream.net>2011-09-14 12:33:51 -0700
committerJosh Durgin <joshd@hq.newdream.net>2011-09-14 12:33:51 -0700
commitcecc822c0bc10c8d5cc5168329ae04172c6e609e (patch)
tree115f09d0764fe7e43ceda0168d287d665ee36774 /nova/api
parent49df5238f7a25ed9b09f1f1ffe10b1b845cf29c3 (diff)
downloadnova-cecc822c0bc10c8d5cc5168329ae04172c6e609e.tar.gz
nova-cecc822c0bc10c8d5cc5168329ae04172c6e609e.tar.xz
nova-cecc822c0bc10c8d5cc5168329ae04172c6e609e.zip
Use the correct method to get a builder.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/contrib/volumes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/volumes.py b/nova/api/openstack/contrib/volumes.py
index d62225e58..9d4254f1f 100644
--- a/nova/api/openstack/contrib/volumes.py
+++ b/nova/api/openstack/contrib/volumes.py
@@ -372,8 +372,7 @@ class BootFromVolumeController(servers.ControllerV11):
for key in ['instance_type', 'image_ref']:
inst[key] = extra_values[key]
- builder = self._get_view_builder(req)
- server = builder.build(inst, is_detail=True)
+ server = self._build_view(req, inst, is_detail=True)
server['server']['adminPass'] = extra_values['password']
return server