diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2021-12-17 11:08:44 -0500 |
---|---|---|
committer | Gonéri Le Bouder <goneri@lebouder.net> | 2021-12-17 11:35:10 -0500 |
commit | 0332e46566cbd061d32cb8a31acdf745683e382e (patch) | |
tree | ecb8a97f7d782114e39d0a68a044e8719093d769 /tools | |
parent | b5bbe7d3c106f7edc40c5c82b92b77891a41d890 (diff) | |
download | zuul-0332e46566cbd061d32cb8a31acdf745683e382e.tar.gz |
decrypt_secret.py: properly init SourceContext class
Change Ib4037da2f7a0f803aca24ce880dbc262375db6a4 introduced 2 extra
parameters for the zuul.model.SourceContext constructor. These
parameters don't really matter for decrypt_secret.py. We just pass the
None value.
Change-Id: Ic4f09558865349c8c479defe1b314b0c4c92dd0f
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/decrypt_secret.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/decrypt_secret.py b/tools/decrypt_secret.py index d8ad1a055..91c503ae4 100755 --- a/tools/decrypt_secret.py +++ b/tools/decrypt_secret.py @@ -33,7 +33,8 @@ def main(): (private_secrets_key, public_secrets_key) = \ encryption.deserialize_rsa_keypair(open(args.private_key, 'rb').read()) parser = zuul.configloader.SecretParser(None) - sc = zuul.model.SourceContext('project', 'master', 'path', False) + sc = zuul.model.SourceContext(None, 'project', None, 'master', + 'path', False) data = zuul.configloader.safe_load_yaml(open(args.file).read(), sc) for element in data: |