diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2011-06-01 23:37:51 -0400 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2011-06-01 23:37:51 -0400 |
| commit | 0e419c00ef9a463acc704f034e4c37929f0ef2eb (patch) | |
| tree | df112dfa2f813c86bac7306427556eee88c2b47b /nova/compute | |
| parent | 16bd0ff62dccda5eba800b2762437d5e86faaafd (diff) | |
image href should be passed through the rebuild pipeline, not the image id.
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 2b353cebb..6a1c68561 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -529,8 +529,8 @@ 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, name=None, metadata=None, - files_to_inject=None): + def rebuild(self, context, instance_id, image_href, name=None, + metadata=None, files_to_inject=None): """Rebuild the given instance with the provided metadata.""" instance = db.api.instance_get(context, instance_id) @@ -550,7 +550,7 @@ class API(base.Base): self.db.instance_update(context, instance_id, values) rebuild_params = { - "image_ref": image_ref, + "image_ref": image_href, "injected_files": files_to_inject, } |
