encrypt: fix bad indentation

An incorrect indentation causes secrets to be truncated to only the
first encrypted chunk. Fix that erroneous behavior.

Change-Id: Ibfb84747e45bc4b4c4861193c64a4c3c91da120f
This commit is contained in:
Matthieu Huin 2020-12-02 12:00:25 +01:00
parent e2cff6dff3
commit b371dc2f40

View File

@ -94,4 +94,4 @@ def encrypt_with_openssl(pubkey_path, plaintext, logger=None):
if p.returncode != 0:
raise Exception('openssl failure (Return code %s)' % p.returncode)
ciphertext_chunks.append(base64.b64encode(stdout).decode('utf-8'))
return ciphertext_chunks
return ciphertext_chunks