def publishSnapshot(name, container): try: snapshot = LXCSnapshot({'name': name, 'container': container}) return response.replySuccess(snapshot.snapshotPublish(), message='Container {} published from {} snapshot successfully.'.format(container, name)) except ValueError as e: return response.replyFailed(message=e.__str__())
def publishSnapshot(name, container): try: snapshot = LXCSnapshot({'name': name, 'container': container}) return response.replySuccess(snapshot.snapshotPublish()) except ValueError as e: return response.replyFailed(message=e.__str__())