diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-03-30 16:25:49 -0400 |
|---|---|---|
| committer | Brian Lamar <brian.lamar@rackspace.com> | 2011-03-30 16:25:49 -0400 |
| commit | d2a04502d0dc374b6d61d42b92e2ea3d50114b39 (patch) | |
| tree | 013551d4279f1913cb4af7e5ef90743e72297380 /nova/compute | |
| parent | e1d4ea7bcb69ae5d47b612eec19f2eafcc903e55 (diff) | |
| parent | cee0e90c058c3e50a3388eb4960afeb21b441f6a (diff) | |
Merged waldon.
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 93a5e7855..fdfb8103b 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -482,12 +482,15 @@ class API(base.Base): def rebuild(self, context, instance_id, image_id, metadata=None): """Rebuild the given instance with the provided metadata.""" - return # default to an empty list metadata = metadata or [] #TODO: validate metadata + params = { + "image_id": image_id, + "metadata": metadata, + } self._cast_compute_message('rebuild_instance', context, - instance_id, metadata) + instance_id, params=params) def revert_resize(self, context, instance_id): """Reverts a resize, deleting the 'new' instance in the process""" |
