Skip to content

Commit

Permalink
set_keyfiles() should work more than once
Browse files Browse the repository at this point in the history
:O
  • Loading branch information
sz3 committed Feb 3, 2020
1 parent 2fe95c9 commit 0ced6cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pog/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def __init__(self, config=None, kwargs=None, pog_cmd=None):
self.kwargs = kwargs or {}

def set_keyfiles(self, keyfiles):
for k in ('keyfile', 'decryption-keyfile', 'encryption-keyfile'):
self.config.pop(k, None)

for f in keyfiles:
if f.endswith('.decrypt'):
self.config['decryption-keyfile'] = f
Expand Down

0 comments on commit 0ced6cf

Please sign in to comment.