Bugfix: Decrypt files.write wrong arg order
files.write expects data, path When using the -o option in decrypt, files.write was being called with path, data leading to errors with filenames being too long (because they were the contents of the file instead). Change-Id: I2b00669227de94ebe6ced51d5ef25686de0c8a4b
This commit is contained in:
parent
c7d745fdbe
commit
865c920760
@ -669,7 +669,7 @@ def decrypt(*, path, save_location, overwrite, site_name):
|
||||
decrypted = engine.secrets.decrypt(path, site_name=site_name)
|
||||
if overwrite:
|
||||
for path, data in decrypted.items():
|
||||
files.write(path, data)
|
||||
files.write(data, path)
|
||||
elif save_location is None:
|
||||
for data in decrypted.values():
|
||||
click.echo(data)
|
||||
|
Loading…
Reference in New Issue
Block a user