Code Duplication    Length = 20-20 lines in 2 locations

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

@@ 412-431 (lines=20) @@
409
        sys.exit(1)
410
411
412
def update_yaml(_args):
413
    _in_file, _u, _a, _i, _o, _tips = _get_update_par(_args)
414
415
    if not _in_file or not _u:
416
        print(_tips)
417
        sys.exit(1)
418
419
    code = _load(_in_file)
420
421
    if _i and _o:
422
        print(_tips)
423
        sys.exit(1)
424
425
    _update(code, _u, _a, _tips)
426
427
    if _i:
428
        _backup(_in_file)
429
        _save(code, _in_file)
430
    elif _o:
431
        _save(code, _o)
432
433
434
def reset(_args):

ci/jenkins/scripts/yaml_processor.py 1 location

@@ 412-431 (lines=20) @@
409
        sys.exit(1)
410
411
412
def update_yaml(_args):
413
    _in_file, _u, _a, _i, _o, _tips = _get_update_par(_args)
414
415
    if not _in_file or not _u:
416
        print(_tips)
417
        sys.exit(1)
418
419
    code = _load(_in_file)
420
421
    if _i and _o:
422
        print(_tips)
423
        sys.exit(1)
424
425
    _update(code, _u, _a, _tips)
426
427
    if _i:
428
        _backup(_in_file)
429
        _save(code, _in_file)
430
    elif _o:
431
        _save(code, _o)
432
433
434
def reset(_args):