示例#1
0
文件: virt.py 项目: lpramuk/spacewalk
def destroy(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.destroy(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
示例#2
0
文件: virt.py 项目: T-D-Oe/spacewalk
def destroy(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.destroy(uuid)
    except errors.VirtualizationException, ve:
        return (1, str(ve), {})
示例#3
0
文件: virt.py 项目: jdobes/spacewalk
def destroy(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.destroy(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s destroyed." % str(uuid), {})
示例#4
0
def destroy(uuid, cache_only=None):
    if cache_only:
        return (0, "no-ops for caching", {})
    try:
        support.destroy(uuid)
    except errors.VirtualizationException:
        ve = sys.exc_info()[1]
        return (1, str(ve), {})
    return (0, "Domain %s destroyed." % str(uuid), {})