[blivet 2/6] Remove format.luks.LUKS.removeKeyFromFile.
mulhern
amulhern at redhat.com
Wed Dec 11 15:06:14 UTC 2013
This method is removed as it will certainly fail if invoked because
the crypto method it invokes does not have the named parameter del_key_file.
It is not used in the code bases.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/formats/luks.py | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/blivet/formats/luks.py b/blivet/formats/luks.py
index ecb4865..fac1bf8 100644
--- a/blivet/formats/luks.py
+++ b/blivet/formats/luks.py
@@ -247,23 +247,6 @@ class LUKS(DeviceFormat):
key_file=self._key_file,
new_passphrase=passphrase)
- def removeKeyFromFile(self, keyfile):
- """ Remove a key contained in a file.
-
- Remove key contained in the specified key file from the LUKS
- header.
- """
- log_method_call(self, device=self.device,
- type=self.type, status=self.status, file=keyfile)
- if not self.exists:
- raise LUKSError("format has not been created")
-
- crypto.luks_remove_key(self.device,
- passphrase=self.__passphrase,
- key_file=self._key_file,
- del_key_file=keyfile)
-
-
def removePassphrase(self, passphrase):
""" Remove the specified passphrase from the LUKS header. """
log_method_call(self, device=self.device,
--
1.8.3.1
More information about the anaconda-patches
mailing list