Merge pull request #433 from liori/minimize-size-typo-temporary

minimize_size: Typo in temporary file name
This commit is contained in:
Anders Ingemann 2018-01-17 17:54:41 +01:00 committed by GitHub
commit d725d3f3bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ class ShrinkVolumeWithQemuImg(Task):
@classmethod @classmethod
def run(cls, info): def run(cls, info):
tmp_name = os.path.join(info.workspace, 'shrinked.' + info.volume.extension) tmp_name = os.path.join(info.workspace, 'shrunk.' + info.volume.extension)
log_check_call( log_check_call(
['qemu-img', 'convert', '-O', info.volume.extension, info.volume.image_path, tmp_name]) ['qemu-img', 'convert', '-O', info.volume.extension, info.volume.image_path, tmp_name])
os.rename(tmp_name, info.volume.image_path) os.rename(tmp_name, info.volume.image_path)