diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-03-30 15:10:40 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-03-30 15:10:40 -0400 |
| commit | d224b0509273ca8a92c5c2b9abca69038835935c (patch) | |
| tree | 776384b5c373afdca360571fb2e99de1d8fcf3ad /nova/compute | |
| parent | 79915a797e8485307d432ac9155d6e777b16dce7 (diff) | |
adding v1.0 support for rebuild; adding compute api rebuild support
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 1dbd73f8f..93a5e7855 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -480,6 +480,15 @@ class API(base.Base): """Reboot the given instance.""" self._cast_compute_message('reboot_instance', context, instance_id) + 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 + self._cast_compute_message('rebuild_instance', context, + instance_id, metadata) + def revert_resize(self, context, instance_id): """Reverts a resize, deleting the 'new' instance in the process""" context = context.elevated() |
