Skip to content

Commit

Permalink
Fix names of the keyword arguments for luks_add_key and luks_remove_key
Browse files Browse the repository at this point in the history
It should be 'npass' not 'new_passphrase' and 'pass_' not 'passhprase'.
  • Loading branch information
vpodzime committed Mar 19, 2015
1 parent 9a6acef commit 7dbb0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blivet/formats/luks.py
Expand Up @@ -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):
"""
Expand All @@ -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):
Expand Down

0 comments on commit 7dbb0c0

Please sign in to comment.