

def stop(self, name):
    (dom, host) = self.get_active_domain(name)
    if (not dom):
        raise Exception(('%s not found or already stopped.' % name))
    return dom.shutdown()

dataset/ETHPy150Open mizzy/maglica/maglica/virt.py Virt.stop/original