[master 1/1] Fix names of the keyword arguments for luks_add_key and luks_remove_key

vpodzime installerbot-noreply at redhat.com
Thu Mar 19 13:18:30 UTC 2015


From: Vratislav Podzimek <vpodzime at redhat.com>

It should be 'npass' not 'new_passphrase' and 'pass_' not 'passhprase'.
---
 blivet/formats/luks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/formats/luks.py b/blivet/formats/luks.py
index a5abc4d..364a727 100644
--- a/blivet/formats/luks.py
+++ b/blivet/formats/luks.py
@@ -264,7 +264,7 @@ def addPassphrase(self, passphrase):
         blockdev.crypto_luks_add_key(self.device,
                                      pass_=self.__passphrase,
                                      key_file=self._key_file,
-                                     new_passphrase=passphrase)
+                                     npass=passphrase)
 
     def removePassphrase(self):
         """
@@ -279,7 +279,7 @@ def removePassphrase(self):
             raise LUKSError("format has not been created")
 
         blockdev.crypto_luks_remove_key(self.device,
-                                        passphrase=self.__passphrase,
+                                        pass_=self.__passphrase,
                                         key_file=self._key_file)
 
     def escrow(self, directory, backupPassphrase):


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/7dbb0c0ba034e7576e93ffc5e1f7a9b8d2a23080


More information about the anaconda-patches mailing list