diff options
Diffstat (limited to 'nova/virt')
| -rwxr-xr-x | nova/virt/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/images.py b/nova/virt/images.py index a5c960486..b5ca8fa47 100755 --- a/nova/virt/images.py +++ b/nova/virt/images.py @@ -225,6 +225,7 @@ def fetch_to_raw(context, image_href, path, user_id, project_id): LOG.debug("%s was %s, converting to raw" % (image_href, fmt)) with utils.remove_path_on_error(staged): convert_image(path_tmp, staged, 'raw') + os.unlink(path_tmp) data = qemu_img_info(staged) if data.file_format != "raw": @@ -233,6 +234,5 @@ def fetch_to_raw(context, image_href, path, user_id, project_id): data.file_format) os.rename(staged, path) - else: os.rename(path_tmp, path) |
