Commit 3db7df81 by Szeberényi Imre

Merge branch 'fix-resize' into 'master'

fix integer error

See merge request !3
parents d53e59f6 ce91131d
...@@ -613,7 +613,8 @@ def resize_disk(name, path, size): ...@@ -613,7 +613,8 @@ def resize_disk(name, path, size):
# domain.blockResize(path, int(size), # domain.blockResize(path, int(size),
# flags=libvirt.VIR_DOMAIN_BLOCK_RESIZE_BYTES) # flags=libvirt.VIR_DOMAIN_BLOCK_RESIZE_BYTES)
# To be compatible with libvirt < 0.9.11 # To be compatible with libvirt < 0.9.11
domain.blockResize(path, int(size)/1024, 0) logging.debug(" === Resize : " + size)
domain.blockResize(path,int(size)//1024, 0)
@celery.task @celery.task
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment