fix: ignore

parent 7a54acaf
......@@ -9,7 +9,7 @@ import os
import gzip
import json
import shutil
import boto3 # AWS S3 sdk
# import boto3 # AWS S3 sdk
from jms_es_sdk import ESStore
......@@ -248,10 +248,10 @@ class S3ReplayRecorder(ReplayRecorder):
self.s3 = boto3.client('s3', aws_access_key_id=self.aws_id, aws_secret_access_key=self.aws_key)
self.bucket = app.config["REPLAY_RECORD_ENGINE"].get("BUCKET", "jumpserver")
def push_to_server(self, session_id):
self.s3.upload_file(
os.path.join(self.app.config['LOG_DIR'], session_id + '.replay.gz'),
self.bucket, self.aws_key) # TODO: 添加日期文件夹及协调一些事宜<liuzheng>
# def push_to_server(self, session_id):
# self.s3.upload_file(
# os.path.join(self.app.config['LOG_DIR'], session_id + '.replay.gz'),
# self.bucket, self.aws_key) # TODO: 添加日期文件夹及协调一些事宜<liuzheng>
def get_command_recorder_class(config):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment