remove remainders of borg key change-algorithm

most was already removed previously, just this was overlooked.
This commit is contained in:
Thomas Waldmann 2022-08-11 17:42:27 +02:00
parent a7bc1f88c1
commit c51a0626de
1 changed files with 0 additions and 9 deletions

View File

@ -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"""