This commit is contained in:
parent
972a2c2314
commit
bb1237f9ad
@ -251,7 +251,8 @@ def download(snapshot, path, volumes, secrets):
|
|||||||
path = f[ 'path' ]
|
path = f[ 'path' ]
|
||||||
if SERVICE in path and f['type'] == 'file':
|
if SERVICE in path and f['type'] == 'file':
|
||||||
secret = dump(snapshot, path).decode()
|
secret = dump(snapshot, path).decode()
|
||||||
secrets[path.removeprefix(SERVICE)] = secret
|
secret_name = path.removeprefix(f'{SECRET_PATH}{SERVICE}_')
|
||||||
|
secrets[secret_name] = secret
|
||||||
with open(filename, "w") as file:
|
with open(filename, "w") as file:
|
||||||
json.dump(secrets, file)
|
json.dump(secrets, file)
|
||||||
print(filename)
|
print(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user