Commit d2275786 by Karsa Zoltán István

parsing int

parent b8c9b426
......@@ -556,7 +556,7 @@ def migrate(name, host, live=False):
def hotplug_memset(name, memory):
"""Hotplug (live) memory set to max mem limit"""
domain = lookupByName(name)
domain.setMemory(memory)
domain.setMemory(int(memory))
@celery.task
@req_connection
......@@ -564,7 +564,7 @@ def hotplug_memset(name, memory):
def hotplug_vcpuset(name, vcpu):
"""Hotplug (live) vcpu set to max vcpu limit"""
domain = lookupByName(name)
domain.setVcpus(vcpu)
domain.setVcpus(int(vcpu))
@celery.task
@req_connection
......
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