summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2011-03-30 15:34:46 -0400
committerBrian Lamar <brian.lamar@rackspace.com>2011-03-30 15:34:46 -0400
commite1d4ea7bcb69ae5d47b612eec19f2eafcc903e55 (patch)
treed165fafa544f20bb7664328590d7972bea7cae90 /nova/compute
parente52cdaa75ac4b5c9ea37a8a8c9b1f02e8d0f638f (diff)
parentd224b0509273ca8a92c5c2b9abca69038835935c (diff)
Merged Waldon's API code.
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/api.py9
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()