Commit 8fe196fd by Guba Sándor

add resize function

parent 7686c2c0
...@@ -584,6 +584,15 @@ def detach_network(name, net): ...@@ -584,6 +584,15 @@ def detach_network(name, net):
@celery.task @celery.task
@req_connection
@wrap_libvirtError
def resize_disk(name, path, size):
domain = lookupByName(name)
domain.blockResize(path, int(size),
flags=libvirt.VIR_DOMAIN_BLOCK_RESIZE_BYTES)
@celery.task
def ping(): def ping():
return True return True
......
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