forked from uncloud/uncloud
Fix bug that cause failure of image resizing when creating vm
This commit is contained in:
parent
ec3cf49799
commit
cd9d4cb78c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue