mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-14 06:54:55 -05:00
vault: fix vault-retrieve to a file
`data` is bytes but we were opening the "--out" file as a text. https://pagure.io/freeipa/issue/7430 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
@@ -1143,7 +1143,7 @@ class vault_retrieve(ModVaultData):
|
||||
error=_('Invalid vault type'))
|
||||
|
||||
if output_file:
|
||||
with open(output_file, 'w') as f:
|
||||
with open(output_file, 'wb') as f:
|
||||
f.write(data)
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user