def start(uuid, cache_only=None): if cache_only: return (0, "no-ops for caching", {}) try: support.start(uuid) except errors.VirtualizationException, ve: return (1, str(ve), {})
def start(uuid, cache_only=None): if cache_only: return (0, "no-ops for caching", {}) try: support.start(uuid) except errors.VirtualizationException: ve = sys.exc_info()[1] return (1, str(ve), {}) return (0, "Domain %s started." % str(uuid), {})