예제 #1
0
파일: api.py 프로젝트: zhouat/pyrebox
def save_vm(name):
    """Save the state of the virtual machine so that it can be restored later
    
        :param name: Name of the snapshot to save
        :type name: str

        :return: None
        :rtype: None
    """
    import c_api
    #If this function call fails, it will raise an exception. 
    #Given that the exception is self explanatory, we just let it propagate upwards 
    return c_api.save_vm(name)
예제 #2
0
파일: api.py 프로젝트: CRYP706URU/pyrebox
def save_vm(name):
    """Save the state of the virtual machine so that it can be restored later

        :param name: Name of the snapshot to save
        :type name: str

        :return: None
        :rtype: None
    """
    import c_api
    # If this function call fails, it will raise an exception.
    # Given that the exception is self explanatory, we just let it propagate
    # upwards
    return c_api.save_vm(name)