Skip to content

Commit

Permalink
Merge pull request #190 from olcf/ngin_no_cache_connector
Browse files Browse the repository at this point in the history
allow no cache to be used inside the interpreter
  • Loading branch information
Noah Ginsburg authored Oct 27, 2020
2 parents 24400d4 + 3eacea2 commit 8c79f78
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion libpkpass/commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _run_command_setup(self, parsedargs):
self._build_recipient_list()

# If there are defined repositories of keys and certificates, load them
if not self.iddbcached:
if not self.iddbcached or self.args['no_cache']:
self.identities.cabundle = self.args['cabundle']
self.identities.load_certs_from_directory(
self.args['certpath'],
Expand Down
2 changes: 1 addition & 1 deletion libpkpass/commands/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def postcmd(self, stop, line):
""" Fix command line arguments, this is a hack to allow argparse
function as we expect """
####################################################################
if str(line) == "edit":
if str(line) == "edit" or '--no-cache' in line:
self._reload_config()
return Cmd.postcmd(self, stop, line)

Expand Down
54 changes: 27 additions & 27 deletions test/passwords/gentest
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ recipients:
encrypted_secrets:
64:E6:E2:73:E4:EE:B2:98:80:55:B4:43:10:33:FF:2B:9F:D2:E8:EF:
derived_key: !!binary |
c3lyMUh5cU1uOWtZYmJBc1VXUjlYbmJGeWFCQldUT2xkcmJXeFJxRE1JYWp6RURxV3RSZ1pwWFN1
WU16TEJzSnA2WEJZSXY3T01BUmNid2laOTljaWV3M04ySTBESGZXMGtTVFdEZG9CX3piRmNtUi1H
aTJIMHE1d3pFRzNkWFhrbzZCQUVCZmNwbUJGdzNkdDBnMldnV0NqMThVZzhGbi03YmNYVFNRUmtN
c0JxcEVLQkwzNFd5MU5YRFVUNkVwMWtrRGZRNzU3TFRjYk9XbzFoVEoxOFk5WnNHSWp2Y2tUeE53
a1hpQnRKQnBxblB4MFhiRjRlMnJuSm51an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TXdzbDFJb2p4V1VCd3lq
X2k0dkZJU2xVTklpQUtRVGwzVkJyczYxbkxSMVh1d05zcXc4Q3BmN3JabFhubV8yY1FrMjhCNm9r
UWdpMkVYWklmb05sU3Q2bmNkUFoxdjhRdFF4ZHVRN3ZfUHVaWFBMWnZkbEx0R2ZtWUFsTFN3eV9q
blhlN3NiX1FIWlltZG1BYllfdUZwY0xERUsxYUtoeEFMaG1yS2tlZHEwUmRSVFZRRUZzYmFqUkVv
d0NONER6ejRSY25BdVVKQWJqbmMtcmxiVFRNb0xEZ2dOaXhsNmthaGFNeTNVMkk3aXhqU3VzZVZS
RmhadEdEd1prT21RZGYzbkk2THVoallkeGt5TzZEZ1RWczJWenhGSDlDVmJidWRNS0dSVDZXeGhF
TGhKWTB1aU90cnZYbG5EYzhIcmlLUjNYOEZ5RUFvdXk3TlFKOUtybHVyUEVUZ0dzeFdmalVNWkxt
NHcxQjQ5dy1oQmhPY1RRQ2laRTZsY3czbEw5M01NRFlnVnI5amJsLWpzcXJNUUI2czRERDhMc1E9
timestamp: '1603827001.54'
54 changes: 27 additions & 27 deletions test/passwords/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ recipients:
encrypted_secrets:
E4:9E:31:9E:53:3C:91:C5:8F:A2:27:8C:DC:77:AE:9E:91:19:0E:6B:
derived_key: !!binary |
YjloX3pCVkpyTU9lSzdZaVJpOU83cnNISjJDWmU5MFNRWlZxYXBqUUFaV0JqM1VObzZoOVc2d1U1
bXItckRObXlvcVhiaE1taUc0V3BzU3JjVHA3SjBPZTVsWDZwd2xrVVpEbHYwLVpGeVV6VkN4YkxL
cmlzZWlmdlJnMXBkbUZuVXZTVGhrSVI0Mi1Fc19qcUQ1WV9MaVlMcHEzSTlxNWZudFgyaTZHdVBj
Mmg3N0R1NjI5RXlfQjJ5WHY5SVJpbzMyZnAwVWNyczNOeThqZTJhNmZQaUhiSUFnT3o2bjAtLTVm
dW15UE9fQ0NtWTB6RHZsVi00WS0zc2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