convert secrets to str type

This commit is contained in:
Anton Nesterov 2024-04-25 18:28:23 +02:00
parent cb24899136
commit 2cc12dbee5

View file

@ -87,7 +87,7 @@ def run(passphrase: str, command: list, parallel=False):
env_prefix = 'PRIVATE'
env = os.environ.copy()
for name, attrs in secrets.items():
env[f'{env_prefix}__{name}'] = attrs['data']
env[f'{env_prefix}__{name}'] = str(attrs['data'])
p = subprocess.Popen(command, env=env)
if not parallel:
p.wait()