Unverified Commit 2ae1ac2d authored by Sebastian Kaspari's avatar Sebastian Kaspari
Browse files

get-secret.py: Fix shadowing of 'json'.

parent 09dc8c20
......@@ -8,13 +8,13 @@ import os
import json
import taskcluster
def write_secret_to_file(path, data, key, base64decode=False, json=False, append=False, prefix=''):
def write_secret_to_file(path, data, key, base64decode=False, json_secret=False, append=False, prefix=''):
path = os.path.join(os.path.dirname(__file__), '../../../' + path)
with open(path, 'a' if append else 'w') as f:
value = data['secret'][key]
if base64decode:
value = base64.b64decode(value)
if json:
if json_secret:
value = json.dumps(value)
f.write(prefix + value)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment