Code Duplication    Length = 11-11 lines in 2 locations

tests/milvus_benchmark/ci/scripts/yaml_processor.py 1 location

@@ 262-272 (lines=11) @@
259
    return code
260
261
262
def _backup(in_file_p):
263
    backup_p = in_file_p + ".bak"
264
265
    if os.path.exists(backup_p):
266
        os.remove(backup_p)
267
268
    if not os.path.exists(in_file_p):
269
        print("File {} not exists.".format(in_file_p))
270
        sys.exit(1)
271
272
    shutil.copyfile(in_file_p, backup_p)  # 复制文件
273
274
275
def _recovery(in_file_p):

ci/jenkins/scripts/yaml_processor.py 1 location

@@ 262-272 (lines=11) @@
259
    return code
260
261
262
def _backup(in_file_p):
263
    backup_p = in_file_p + ".bak"
264
265
    if os.path.exists(backup_p):
266
        os.remove(backup_p)
267
268
    if not os.path.exists(in_file_p):
269
        print("File {} not exists.".format(in_file_p))
270
        sys.exit(1)
271
272
    shutil.copyfile(in_file_p, backup_p)  # 复制文件
273
274
275
def _recovery(in_file_p):