コード例 #1
0
ファイル: virt.py プロジェクト: lpramuk/spacewalk
def resume(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.resume(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
コード例 #2
0
ファイル: virt.py プロジェクト: T-D-Oe/spacewalk
def resume(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.resume(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
コード例 #3
0
ファイル: virt.py プロジェクト: jdobes/spacewalk
def resume(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.resume(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s resumed." % str(uuid), {})
コード例 #4
0
ファイル: virt.py プロジェクト: nkatwesigye/Spacewalk
def resume(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.resume(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s resumed." % str(uuid), {})