Ejemplo n.º 1
0
def restoreSnapshot(name, container):
    try:
        snapshot = LXCSnapshot({'name': name, 'container': container})
        return response.replySuccess(snapshot.snapshotRestore(), message='Container {} restored from  snapshot {} successfully.'.format(container, name))
    except ValueError as e:
        return response.replyFailed(message=e.__str__())
Ejemplo n.º 2
0
def restoreSnapshot(name, container):
    try:
        snapshot = LXCSnapshot({'name': name, 'container': container})
        return response.replySuccess(snapshot.snapshotRestore())
    except ValueError as e:
        return response.replyFailed(message=e.__str__())