Exemplo n.º 1
0
def suspend(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.suspend(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
Exemplo n.º 2
0
def suspend(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.suspend(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
Exemplo n.º 3
0
def suspend(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.suspend(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s suspended." % str(uuid), {})
Exemplo n.º 4
0
def suspend(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.suspend(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s suspended." % str(uuid), {})