Fix bug that cause failure of image resizing when creating vm

This commit is contained in:
ahmadbilalkhalid 2019-12-26 14:30:15 +05:00
parent ec3cf49799
commit cd9d4cb78c

View file

@ -89,7 +89,7 @@ class FileSystemBasedImageStorageHandler(ImageStorageHandler):
src = join_path(self.image_base, src)
dest = join_path(self.vm_base, dest)
try:
shutil.copy(src, dest)
shutil.copyfile(src, dest)
except Exception as e:
logger.exception(e)
return False