diff options
| author | Chuck Short <chuck.short@canonical.com> | 2012-08-01 13:03:15 -0500 |
|---|---|---|
| committer | Chuck Short <chuck.short@canonical.com> | 2012-08-01 13:09:58 -0500 |
| commit | 46e2c8a575fecc55a896632029d5db6b5bd7b112 (patch) | |
| tree | 63741d1358c25cd1cf9994179e15f99accf91e1f /nova/image | |
| parent | 3a5ea16bec06fceddfe06af343ee505cfc419a1b (diff) | |
| download | nova-46e2c8a575fecc55a896632029d5db6b5bd7b112.tar.gz nova-46e2c8a575fecc55a896632029d5db6b5bd7b112.tar.xz nova-46e2c8a575fecc55a896632029d5db6b5bd7b112.zip | |
Fix traceback when using s3.
Fix a regression that causes tracebacks in s3
Traceback (most recent call last):
File "/opt/stack/nova/nova/image/s3.py", line 294, in delayed_create
_update_image_state(context, image_uuid, 'downloading')
File "/opt/stack/nova/nova/image/s3.py", line 286, in _update_image_state
headers)
TypeError: update() takes at most 5 arguments (6 given)
This is due to 6e4539f397bfc5dbf9ec88ddc3968621815d576b
Fixes LP: #1031867
Change-Id: I6cf786999c623c0ca780a173dcba49354207e9c3
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'nova/image')
| -rw-r--r-- | nova/image/glance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py index 0167a25fc..9aa54eb18 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -239,7 +239,7 @@ class GlanceImageService(object): base_image_meta = self._translate_from_glance(recv_service_image_meta) return base_image_meta - def update(self, context, image_id, image_meta, data=None): + def update(self, context, image_id, image_meta, data=None, features=None): """Replace the contents of the given image with the new data. :raises: ImageNotFound if the image does not exist. @@ -250,7 +250,7 @@ class GlanceImageService(object): image_meta = self._translate_to_glance(image_meta) try: image_meta = self._client.call(context, 'update_image', - image_id, image_meta, data) + image_id, image_meta, data, features) except Exception: _reraise_translated_image_exception(image_id) |
