Esempio 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__())
Esempio 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__())