From c51a0626de7695f392f80370f39b5b1060c1909a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 11 Aug 2022 17:42:27 +0200 Subject: [PATCH] remove remainders of borg key change-algorithm most was already removed previously, just this was overlooked. --- src/borg/archiver/keys.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/borg/archiver/keys.py b/src/borg/archiver/keys.py index 5a726c347..f92843710 100644 --- a/src/borg/archiver/keys.py +++ b/src/borg/archiver/keys.py @@ -89,15 +89,6 @@ class KeysMixIn: return EXIT_SUCCESS - @with_repository(exclusive=True, compatibility=(Manifest.Operation.CHECK,)) - def do_change_algorithm(self, args, repository, manifest, key): - """Change repository key algorithm""" - if not hasattr(key, "change_passphrase"): - print("This repository is not encrypted, cannot change the algorithm.") - return EXIT_ERROR - key.save(key.target, key._passphrase, algorithm=KEY_ALGORITHMS[args.algorithm]) - return EXIT_SUCCESS - @with_repository(lock=False, exclusive=False, manifest=False, cache=False) def do_key_export(self, args, repository): """Export the repository key for backup"""