1
0

Code quality
Some checks failed
Test Python / Test (push) Has been cancelled

This commit is contained in:
Jon Michael Aanes 2024-07-23 00:47:35 +02:00
parent 86c6d1f02a
commit e5afd4a12f
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 4 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class SecretLoader:
return None
cmd = ['pass', 'show', f'{self.pass_folder}/{secret_name.lower()}']
process = subprocess.run(cmd, capture_output=True)
process = subprocess.run(cmd, capture_output=True, check=True)
if process.returncode:
return None
@ -240,5 +240,6 @@ class SecretLoader:
solutions_list = '\n'.join([f'* {s}' for s in solutions_list])
return ERROR_MESSAGE_FORMAT.format(
secret_name=secret_name, solutions_list=solutions_list,
secret_name=secret_name,
solutions_list=solutions_list,
)

1
test/__init__.py Normal file
View File

@ -0,0 +1 @@
# Dummy