예제 #1
0
파일: virt.py 프로젝트: lpramuk/spacewalk
def setVCPUs(uuid, vcpus, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.setVCPUs(uuid, vcpus)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
예제 #2
0
파일: virt.py 프로젝트: T-D-Oe/spacewalk
def setVCPUs(uuid, vcpus, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.setVCPUs(uuid, vcpus)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
예제 #3
0
파일: virt.py 프로젝트: jdobes/spacewalk
def setVCPUs(uuid, vcpus, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.setVCPUs(uuid, vcpus)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "VCPUs set to %s on %s." % (str(vcpus), str(uuid)), {})
예제 #4
0
def setVCPUs(uuid, vcpus, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.setVCPUs(uuid, vcpus)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "VCPUs set to %s on %s." % (str(vcpus), str(uuid)), {})